Skip to content

Update email address automatically if not present in profile#8266

Merged
WhitShake merged 7 commits intoAzure:mainfrom
WhitShake:auto-add-user-email
May 16, 2024
Merged

Update email address automatically if not present in profile#8266
WhitShake merged 7 commits intoAzure:mainfrom
WhitShake:auto-add-user-email

Conversation

@WhitShake
Copy link
Copy Markdown
Contributor

Added method to:

  • Check current value of email address in User's APIView profile
  • If value == null, retrieve @microsoft.com email address from Claim, if present
  • Update User's profile with this email address
  • If non-microsoft.com email address is already present in User's profile, that email address persists, no changes are made

Comment thread src/dotnet/APIView/APIViewWeb/Controllers/AccountController.cs Outdated
Comment thread src/dotnet/APIView/APIViewWeb/Managers/UserProfileManager.cs
Comment thread src/dotnet/APIView/APIViewWeb/Managers/UserProfileManager.cs Outdated
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