Hi @Tarkowski, Michael (M.) , To disable and re-enable Azure AD B2C registered applications using the Microsoft Graph API, you can update the signInAudience
property of the application. By setting the signInAudience
to None
, you can effectively disable the application. To re-enable the application, set the signInAudience back to its original value (e.g., AzureADMyOrg
).
Here's a sample curl command to update the signInAudience
property of an application:
curl -X PATCH https://graph.microsoft.com/v1.0/applications/{application_id} -H 'Authorization: Bearer {access_token}' -H 'Content-Type: application/json' -d '{ "signInAudience": "None" }'
Replace {application_id}
with the ID of the application you want to disable, and {access_token}
with a valid access token.
To re-enable the application, change the signInAudience
value back to its original value, for example:
curl -X PATCH https://graph.microsoft.com/v1.0/applications/{application_id} -H 'Authorization: Bearer {access_token}' -H 'Content-Type: application/json' -d '{ "signInAudience": "AzureADMyOrg" }'
Remember to replace {application_id}
and {access_token}
with the appropriate values.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James