B2C app App registrations via API

Bhavya Vootla 0 Reputation points Microsoft Employee
2024-04-04T15:23:52.4433333+00:00

We did notice this: In the documentation for the endpoint to create an application through Graph, the example response returns

 

"signInAudience": "AzureADandPersonalMicrosoftAccount"

 

when an API request is made that only includes the display name. See https://learn.microsoft.com/en-us/graph/api/application-post-applications?view=graph-rest-1.0&tabs=http.

POST https://graph.microsoft.com/v1.0/applications

Content-type: application/json

{

  "displayName": "Display name"

}

The behavior we are seeing now when we make API calls is consistent with the screenshot you gave that says that AzureADMyOrg is the default value.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,031 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 42,026 Reputation points
    2024-04-05T07:15:32.03+00:00

    Hi @Bhavya Vootla

    Examples in the documentation are generally intended as references rather than absolute specifications. In fact, when you create an app using the graph API and specify only the display name, the value of the "signInAudience" property defaults to AzureADMyOrg.

    User's image

    Hope this helps.

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


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.