Forum Discussion
FabioG
11 months agoContributor II
Filter Members by Security
So we have the GetBaseMembers method (or the GetChildren, or the GetDescendant or event the GetMember) that would return instances of the Member class. What is not clear (at least to me) is how I co...
MarcusH
11 months agoValued Contributor
You can write a custom member list that gets all the members. Read through each member and get the Read and Write groups (I am assuming you are wanting this for the Entity dimension) then check if the current user is in those groups using the BRApi.Security.Authorization.IsUserInGroup call. As RobbSalzmann says, you will need to check if the user is an Administrator and if they have access to the AdministerApplication or ViewAllData roles.
FabioG
11 months agoContributor II
Hi MarcusH ,
this would be really really slow, suppose I have hundreds/thousands of members and I want to populate a Combo: I should loop through all of them and, for each one, check their groups.
I suppose that, just like stated by RobbSalzmann , when you're not an administrator, returned data is natively filtered, so the problem I exposed is not actually a problem.
Thanks
FabioG
Related Content
- 3 years ago
- 8 months ago