Plaza 365
Plaza 365

No results found for your search

RegisterLog in

3

Visit article

Dynamics 365 Business Central

Category

Jul 18, 2024

Published date

Text

Article Type


AI Summary

  • The article discusses using Azure AD B2C to manage external users with custom extension properties in addition to standard fields available in Entra.
  • The author faced a challenge when trying to clean up records via a PowerShell script due to only having user email addresses, not userPrincipalNames.
  • Switching to the Microsoft Graph PowerShell module from the AzureAD module, the author sought assistance from ChatGPT to modify their script.
  • Troubleshooting involved identifying user records using email addresses stored in the "identities" object and utilizing the Microsoft Graph Explorer to query user objects.
  • ChatGPT provided troubleshooting suggestions when encountering errors in filtering users with unsupported properties in the Microsoft Graph API.
  • A successful query to find users using email addresses in the B2C tenant was achieved by using the Get-MgUser cmdlet with a filter based on issuer and issuerAssignedId.
  • Custom extension properties were created in the custom policy to track additional user data, which required updating user records using the Update-MgUser cmdlet with additionalProperties.
  • For debugging purposes, the author utilized a separate section in the script to write updated user properties to the console, aiding in testing and troubleshooting.

Registered users can view the full text for FREE!

Sign In Now!

Cookies Consent

We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.