Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List user access for a record or revoke all user accesses to a record? #528

Open
Henry-Sir opened this issue Oct 27, 2023 · 1 comment
Open

Comments

@Henry-Sir
Copy link

Hello,

Here ist the question of list record access for a user: #496

I need the whole thing reversed. An overview of all users that have been granted access to a record via Grant-CrmRecordAccess.
Is this possible?

Or is there a way to clean up the granted access, like "Remove-CrmRecordAccess -RevokeAll"?

@seanmcne
Copy link
Owner

seanmcne commented Nov 3, 2023

If you can find a way, using the api, to do this then it's very likely we could find a way to do it with this (we pretty much have access to anything in the API). In the past, it would be quite difficult to do such an operation. The reason is: users can get access to a record quite a few ways:

  • direct sharing - where the user would show up as having something shared to them
  • via inherited access - they have access to an account, but in the relationship setup they also have cascaded/inherited access rights
  • via an access team
  • via a role privilege in their assigned security role (ie: global read on all accounts)
  • via a role privilege being a member of a team assigned a security role (ie: global read on all accounts)
  • more info here: https://learn.microsoft.com/en-us/power-platform/admin/how-record-access-determined

It's possible I'm forgetting other ways, additionally, I don't know if there's an easy way to request all direct shares by the users principal (we can get the direct shares for a given record but I don't think there's an api call to retrieve all records shared to a user). However, if I've missed something and you have a way to get all the direct shares to a given user please let me know and we'll see if that's something we can do here. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants