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

[Feature Request] : Support delete on principalobjectaccess #423

Closed
sybaris opened this issue Jan 23, 2024 · 0 comments · Fixed by #483
Closed

[Feature Request] : Support delete on principalobjectaccess #423

sybaris opened this issue Jan 23, 2024 · 0 comments · Fixed by #483

Comments

@sybaris
Copy link

sybaris commented Jan 23, 2024

Hi,

First, Thanks for you wonderfull tool. I used it very often...
Something that could be usefull for me it's to be able to delete/update principalobjectaccess.
image

Here some C# code to do the delete :

  var entity = ...Get record from principalobjectaccess...
  var revokeAccessRequest = new RevokeAccessRequest
  {
      Revokee = new EntityReference(entity.GetAttributeValue<string>("principaltypecode"), entity.GetAttributeValue<Guid>("principalid")),
      Target = new EntityReference(entity.GetAttributeValue<string>("objecttypecode"), entity.GetAttributeValue<Guid>("objectid")),
  };

  serviceClient.Execute(revokeAccessRequest);

Regards
Sybaris

MarkMpn added a commit that referenced this issue Jun 5, 2024
@MarkMpn MarkMpn mentioned this issue Jun 5, 2024
@MarkMpn MarkMpn linked a pull request Jun 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant