Azure AD B2C objectId not returned on Before creating the user api connector

Nick Heath 0 Reputation points
2023-01-30T18:06:48.8933333+00:00

According to your documentation: https://learn.microsoft.com/en-gb/azure/active-directory-b2c/add-api-connector?pivots=b2c-user-flow#before-creating-the-user the objectId of the user being created should be returned in the api request, however this is not the case.

I have checked the Application Claims > Users Object Id and this does not make a difference.

It is necessary to have the objectId in order to relate the newly created user to data in the application.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,526 Reputation points Moderator
    2023-02-01T01:04:31.8866667+00:00

    Hello, apologies for the confusing sample requests. Azure AD B2C sign up user flows will only include the objectId claim in the API request during the PreTokenIssuance/Before sending the token (preview) step. We will proceed to correct our documentation.

    Let us know if you need additional assistance. If the answer was helpful, please accept it so that others can find a solution.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.