Dynamic Cell Access by Role

Highlighted
Contributor

Dynamic Cell Access by Role

I am looking for suggestions / alternative approaches for managing DCA by the user's assigned Role. Ideally, there would be an easy way to maintain this going forward.

 

1) I have heard a rumor that there is a trick wherein you somehow create a filtering module, then use the normal Roles>>Modules access assignments. Access to the filtering module somehow controls access to the line item.  If this approach works, it would minimize maintenance and simplifiy the overall process.  Unfortunately, I have been unable to make this work.  Does anyone have a trick up their sleeve?  

 

2) Another alternative might go something like this: Create (and maintain) a List of Roles, build a module by Users and Roles, export / import the Roles tab in order to maintain the mapping of Users to Roles, then use booliean logic like "If user has Role and Role is allowed read access then true" as filters for DCA.  Is there a practical how-to set of steps for this?  

 

 

Message 1 of 6
5 REPLIES 5
Community Boss

Re: Dynamic Cell Access by Role

@hendersonmj 

The best approach is 2.

 

1. Create a list of roles and map the access to the roles (in my example, products)2019-02-21_12-08-31.png

 

2. Map the users to the roles2019-02-21_12-26-39.png

3. Map the access by role to a module by user and product2019-02-21_12-34-16.png

Hope that helps

David

 

 

Message 2 of 6
Super Contributor

Re: Dynamic Cell Access by Role

and with David's solution for 2, you can actually solve 1 as you can use your mapping to maintain the actual user role:you can import from the module into the user settings, avoiding "maintenance" and managing user rights from a dashboard which is more user friendly.

Nathan Rudman
Anaplan Model Builder
Message 3 of 6
Community Boss

Re: Dynamic Cell Access by Role

Also, if required, you can actually have a different set of roles for DCA purposes and map user to mulitple roles.  You just have to amend the logic to check for each role line item

 

2019-02-22_09-06-41.png

 

2019-02-22_09-08-25.png

 

 

Message 4 of 6
Occasional Contributor

Re: Dynamic Cell Access by Role

I have a customer who's trying to do this as well, but their user base and list of roles is large, changing often.  Any creative ways on how user to role mapping can be automated?  Only thing I can think of is an export of user role and an import to the mapping module.

Message 5 of 6
Community Boss

Re: Dynamic Cell Access by Role

Yep, unfortunately that is the only practical option, but you could schedule it to run overnight or 2x per day

If you were going to run it during the day, you could also use an additional line item to only import the changes

 

They will need to be wary of changing the use role whilst the users are in the model.  Imagine you are in the middle of entering data, the import runs, and now you can't edit/see what you could before!!!

 

Hope that helps

David

Message 6 of 6