How to provide a temporary write access to an entity?
Eg: Once the user saved a record in an entity, write permission on that entity should be removed automatically.
Is it possible to achieve this using Jscript or plugin.
Thanks
How to provide a temporary write access to an entity?
Eg: Once the user saved a record in an entity, write permission on that entity should be removed automatically.
Is it possible to achieve this using Jscript or plugin.
Thanks
Any sample code is available of how to update it.
Thanks for the reply.
Ok then do this. Create 2 security roles - exactly identical - one will have right privilege to entity B & other won’t. Assign/revoke necessary security role to user(s) based on your need.
You can try 2 teams with 2 different roles, add/remove the member to that team based on your condition.
You can do this on post update plugin. Pls understand this comes with overhead of POA entries.
Hi Elangamban,
Have you tried my suggestion?
Any further suggestion on this.
Thanks.
Even if they're doing multiple transactions in Entity A, if permission is already provided, need to skip the permission assigning step.
Once Entity B is saved write permission on Entity B needs to be removed.
Create/ Edit is an action which can be done multiple times i.e. user can create records for Entity A again and again, how do you want to handle this scenario as with your automation, you would have give the rite access to Entity B when User created the record for the first time?
Can you explain this bit "unless Executive is Create/Edit Entity A"?
Hi,
I have two entities A and B. I don't want to give write permission to Entity B until unless Executive is Create/Edit Entity A. When saving the Entity A I want to give write permission to Entity B. Once Entity B is saved I want to again revoke write permission.
This needs to be automated. How to achieve this?
Thanks
Hi Elangamban,
All you need to do is give a user a security role with Create and Read privileges for an entity but no Write privileges. It meets your requirement without adding unnecessary complexity.
Hi,
You may also think some alternate way like creating field or identifying created by records availability for particular user in the entity. If the record is available throw exception from create plugin.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156