3rd-party-integrations / github-team-sync

Sync GitHub teams to groups in Active Directory, LDAP, Okta, OneLogin or AzureAD when using any authentication method for GitHub.
MIT License
201 stars 67 forks source link

Azure AD UPN mapping #67

Closed primetheus closed 3 years ago

primetheus commented 3 years ago

This PR adds the ability to use the UPN (userPrincipalName) as the GitHub username and split on the @ character. This would mean that user@example.onemicrosoft.com becomes user, which is necessary for mapping to GitHub. If you have a custom attribute for GitHub username then this is not needed