IdentityUserFlow.ReadWrite.All
Allows the app to read or write your organization's user flows, without a signed-in user.
Permission Details
Read and write all identity user flows
Allows the app to read or write your organization's user flows, without a signed-in user.
65319a09-a2be-469d-8782-f6b07debf789
Read and write all identity user flows
Allows the app to read or write your organization's user flows, on behalf of the signed-in user.
281892cc-4dbf-4e3a-b6cc-b21029bb4e82
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
id |
String |
The identifier of the user flow. The prefix of B2C1 is added to the value that you provide. |
userFlowType |
userFlowType |
The possible values are: signUp, signIn, signUpOrSignIn, passwordReset, profileUpdate, resourceOwner, unknownFutureValue. |
userFlowTypeVersion |
Single |
This is the version of the user flow type. Each user flow type can have different possible versions such as 1, 1.1 or 2. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"id": "String (identifier)",
"userFlowType": "string",
"userFlowTypeVersion": "Single"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
userFlowType |
userFlowType |
Related userFlowType data exposed by this resource. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new B2xIdentityUserFlow
{
Id = "Partner",
UserFlowType = UserFlowType.SignUpOrSignIn,
UserFlowTypeVersion = 1f,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Identity.B2xUserFlows.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const identityProvider = {
'@odata.id': 'https://graph.microsoft.com/v1.0/identityProviders/Facebook-OAUTH'
};
await client.api('/identity/b2xUserFlows/B2X_1_Partner/identityProviders/$ref')
.post(identityProvider);
Import-Module Microsoft.Graph.Identity.SignIns
$params = @{
id = "Partner"
userFlowType = "signUpOrSignIn"
userFlowTypeVersion = 1
}
New-MgIdentityB2XUserFlow -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.b2x_identity_user_flow import B2xIdentityUserFlow
from msgraph.generated.models.user_flow_type import UserFlowType
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = B2xIdentityUserFlow(
id = "Partner",
user_flow_type = UserFlowType.SignUpOrSignIn,
user_flow_type_version = 1,
)
result = await graph_client.identity.b2x_user_flows.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for IdentityUserFlow.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.