Hello Community,
I am working on a Dataverse solution where I have a custom table with a lookup column referencing the systemuser table. I have implemented an unbound GrantAccess action to share records with specific users based on the lookup column value.
Now, I need to handle a scenario where, if the lookup column value changes (e.g., a new user is selected for the record), the access granted to the previously selected user must be revoked.
I would like to know the best ways to achieve this functionality. Specifically:
- How can I programmatically revoke access for the previously assigned user?
- Are there any best practices for managing access in such scenarios to avoid redundant sharing or permission issues?
- Can this be handled using Power Automate, plugins, or any other recommended approach?
I would appreciate detailed steps or code examples if available.


Report
All responses (
Answers (