Skip to content

UserPrincipal.GetAuthorizationGroups(): Clarify null return scenario #8788

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

Merged
merged 1 commit into from
Jan 19, 2023
Merged

UserPrincipal.GetAuthorizationGroups(): Clarify null return scenario #8788

merged 1 commit into from
Jan 19, 2023

Conversation

gabeluci
Copy link
Contributor

@gabeluci gabeluci commented Jan 13, 2023

Since UserPrincipal.GetAuthorizationGroups() only returns security groups, it will still return null if the user is a member of distribution groups, but not security groups. So it's not entirely accurate to say that it will return "null if the user does not belong to any groups".

I propose that sentence is changed to "null if the user does not belong to any security groups."

Since this only returns security groups, it will still return null if the user is a member of distribution groups, but not security groups. So it's not entirely accurate to say that it will return "null if the user does not belong to *any* groups".
@gabeluci gabeluci requested a review from a team as a code owner January 13, 2023 13:51
@ghost ghost added community-contribution Indicates that the PR has been added by a community member area-System.DirectoryServices labels Jan 13, 2023
@gabeluci gabeluci changed the title Clarify null return scenario UserPrincipal.GetAuthorizationGroups(): Clarify null return scenario Jan 13, 2023
@learn-build-service-prod
Copy link

Learn Build status updates of commit 5e24f60:

✅ Validation status: passed

File Status Preview URL Details
xml/System.DirectoryServices.AccountManagement/UserPrincipal.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@buyaa-n buyaa-n merged commit 16a96e3 into dotnet:main Jan 19, 2023
@gabeluci gabeluci deleted the patch-1 branch January 20, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.DirectoryServices community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants