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

Fix for false positive exception logging in GetPrincipalUniqueRoleAssignments #495

Conversation

patrikhellgren
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
New sample? no
Related issues?

What's in this Pull Request?

Replaces try-catch with ExceptionHandlingScope so that false positive exceptions are not logged when using GetPrincipalUniqueRoleAssignments. Before this an exception was logged for every securable object that did not have a specific role assignment for the provided principal.

@jansenbe jansenbe self-assigned this Oct 29, 2021
jansenbe added a commit that referenced this pull request Oct 29, 2021
@jansenbe jansenbe merged commit 585cbed into pnp:dev Oct 29, 2021
@patrikhellgren patrikhellgren deleted the getprincipaluniqueroleassignments-exceptionhandlingscope branch November 6, 2021 13:08
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 this pull request may close these issues.

2 participants