-
Notifications
You must be signed in to change notification settings - Fork 200
Description
Describe the bug
I've been using the MS Graph Powershell tools to try and semi-automate / script the buildout of my Enterprise Application definitions/configuration in our MS tenant. In some of these cases, those Enterprise Application configs will make use of SAML to enable SSO login into said app.
There are at least two main configuration items that I believe need to be set to get a SAML connection up and running with an Enterprise App - an EntityID and a ACS (reply URL).
This code snippet used to work:
$params = @{
identifierUris = @(
""
)
web = @{
redirectUris = @(
""
)
}
}
Update-MgApplication -ApplicationId -BodyParameter $params
When I run the above code, the "identifierUris" value does get set properly, but the "redirectUris" does not. No matter what I do, I can't seem to update it programmatically using powershell. I've fallen back to setting the ACS URL's manually via the GUI.
Expected behavior
The expected behavior is that when the redirectUri's value is set properly, it should be queryable and viewable
For example:
(Get-MgApplication -ApplicationId ).web | fl
Should return a list of values and the "redirectUris" value should be configured with what I set it to.
How to reproduce
Using an existing Enterprise App that has SAML turned on/activated, should then allow the following code to be used:
$params = @{
identifierUris = @(
"teststring"
)
web = @{
redirectUris = @(
"https://test.com"
)
}
}
Update-MgApplication -ApplicationId -BodyParameter $params
SDK Version
No response
Latest version known to work for scenario above?
2.26.1
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
$PSVersionTable
Name Value
---- -----
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
OS: Windows 111
Architecture: x64
### Other information
_No response_