How I can add an application to my Entra External ID user flow using Graph API?

Danny Bollaert 20 Reputation points
2025-01-07T13:03:54.8+00:00

Context

We have built a portal where our in-house developers can register their applications. After approval, graph API's are called automatically to create the app registration/service principal.

Multiple forms of authentication are supported.

Use case

We want to extend the OAuth authentication service registration to allow users to add "self-service sign-up" functionality to their applications.

While we can manually add the application to the "self-service sign-up" feature:

Microsoft Documentation on Self-Service Sign-Up User Flow

We would like to automate this process.

User's image Problem

There is plenty of documentation describing how to configure identity providers for the user flow.

However, I have not found any documentation regarding "adding an application to this user flows".

Research
I already examined the call made by the Entra portal. It seems to connect to:

https://cpim.windows.net/graph/$metadata#susiConfigPolicies

FYI: CPIM stands for: Customer and Partner Identity Management. MS uses this name on the inside to refer to AAD B2C.

source: https://stackoverflow.com/questions/72881808/what-does-cpim-stand-for-in-the-context-of-aad-b2c

With the following payload:


{  

  "applicationId": "",  

  "userFlowId": ""  

}

Question

Could you please provide me with a link to documentation how I can add an application to my user flow using Graph API?

Thank you in advance!

Best regards,

Danny

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,717 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,976 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,748 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akhil Nasalwai - MSFT 85 Reputation points Microsoft Vendor
    2025-01-08T13:27:33.65+00:00

    Hello Danny Bollaert,

    Thank you for contacting Microsoft!

    For the query mentioned on how to add an application to user flow using Graph API, please find the below relevant link which might help in addressing the question.

    Link: Documentation for adding application to user flow using Graph API

    This documentation provides detailed instructions on how to link an application to a user flow, including the necessary permissions, HTTP request format, and request body structure.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

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.