Hi @Michal Durista ,
Thanks for reaching out.
Microsoft Entra External ID and Azure AD B2C are two separate platforms powered by ESTS and IEF respectively.
There are different endpoints of Microsoft Graph API allows you to manage resources in your Microsoft Entra ID for customers directory.
However, you can update the extension attribute of External Id of customer in similar way for Entra ID for customers as B2C and Microsoft Entra custom attributes as mentioned below:
I created this custom attribute in my External ID for customer's tenant extension_700295f86fbe4d649b152100a99c7370_TestAttribute and collected data during sign up for user.
using Microsoft.Graph.Models;
var requestBody = new User
{
AdditionalData = new Dictionary<string, object>
{
{
"extension_700295f86fbe4d649b152100a99c7370_TestAttribute" , "Test1"
},
},
};
var result = await graphClient.Users["{user-id}"].PatchAsync(requestBody);
To get the extension attribute of user, you can still use existing user's v1 endpoint with select or directly beta endpoint.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.