OrganizationGroup.hasRoleAssigned(role)

Indicates if the group has the role, with the given Id, assigned. This examines the roles assignment in the Group object, not in the directory. This means that if you change the role's assignments, you can check them immediately and not wait until the Directory information is refreshed.

Arguments:

Name Type Description Mode
role String the id of the role to check in