Replace securityRoleId with the ID of the security role you want to query and service with your IOrganizationService.
roleResponse.RolePrivileges will contain a long list of privilege IDs which are not very useful on their own. You can get the name of all of these privileges like this:
Now you will have all columns (attributes) for all privileges for a given security role stored in privileges
To go one step further, you can filter your privileges by the entity they refer to like so:
No comments:
Post a Comment