Relay State URL CLI Command

Vaish, Himanshu 1 Reputation point
2022-12-02T19:58:45.887+00:00

Hi,

Is there a way to change Relay State Url for an application through CLI?

Thanks

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,386 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 33,706 Reputation points Microsoft Employee
    2022-12-02T22:32:24.737+00:00

    Hi @Vaish, Himanshu ,

    Based on this related Github issue, it looks like you can configure these SSO settings (including Relay State) by calling Microsoft Graph API directly with az rest (but not with az ad). The instructions to Automate SAML-based SSO configuration are documented here: https://learn.microsoft.com/en-us/graph/application-saml-sso-configure-api?tabs=http%2Cpowershell-script

    You should be able to update the relayState under samlSingleSignOnSettings. See Update-MgServicePrincipal

    https://learn.microsoft.com/en-us/graph/api/resources/samlsinglesignonsettings?view=graph-rest-1.0

    Let me know if this is what you are looking for and meets your requirement. If you provide more details about your use case I would be happy to pass feedback along to the product team. You are also welcome to leave your own feedback in the Ideas portal: https://feedback.azure.com/

    -

    If the information helped you, please Accept the answer. This will help us and other community members as well.

    0 comments No comments