findGroupByName
Finds and retrieves a group by its name.
This method searches for a group identified by the given groupName
. If a group with the specified name exists, it returns the corresponding Group object. If no such group is found or if the groupName
is null or empty, the method returns null.
This method is useful when you need to retrieve a specific group's details based on its name without performing an operation that requires asynchronous processing.
Return
The Group object corresponding to the given groupName
, or null if no such group exists or if the groupName
is invalid.
Parameters
groupName
The name of the group to find. If null or empty, the method returns null.