OrganizationGroup.hasRoleAssigned(role,parametricValue)

Indicates if the group has assigned the role with the given Id and parametric value. This applies for parametric roles, and the parametric value must not be null. 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
parametricValue String the parameter's value to check in