def has_user_group(self, user_group_name):
"""Checks if a user group exists in the commcell with the input user group name.
Args:
user_group_name (str) -- name of the user group
Returns:
bool - boolean output whether the user group exists in the commcell or not
Raises:
SDKException:
if type of the user group name argument is not string
"""
if not isinstance(user_group_name, basestring):
raise SDKException('UserGroup', '101')
return self._user_groups and user_group_name.lower() in self._user_groups
评论列表
文章目录