Skip to main content

MembersOfRole

The MembersOfRole function takes one role name parameter and returns the locally assigned and inherited users and groups of a role that an object has (which are shown in the UI Responsibilities tab).
For the example above the membersOfRole('Role1') function returns 3 items for the Object1 object, inherited Group2 user group, locally assigned User1 user, and Group1 user group.

The MembersOfRole function can only appear in the SELECT list.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!