Adding role and removing role automatically

anvitha ash
Tera Contributor

Hello,

 

We have a scenario, we have one module called "my company data" and this module restricted with role a called(ex. sn_company_data) only the users with this role can access the module and we don't want to assign this role to anyone.

 

Now once a record is been assigned to a particular user he is not able to view the record in the module because he doesn't have "sn_company_data" role to access that module

 

We want to configure in such a way that whenever a record is been assigned to that user then automatically that user should get the role("sn_company_data") in order to access the record and once the record is been closed by the user then that role("sn_company_data") should be automatically deleted from that user profile.

 

Can we achieve this functionality? can someone help me here 

0 REPLIES 0