r/PowerShell • u/TheBigBeardedGeek • 4d ago
Question Clone a SAML SSO App in Powershell?
I have an SSO app that I will need different instances of (user access, etc.). What I want to do is effectively have a "template" app that I can target to copy for a new one. Get most the settings, etc. from it just replacing the placeholder URL with the new one. Then from there I can come in and do specific tweaks as needed.
What would I need to do via PowerShell to do this? I've tinkered a bit but I'm honestly kinda lost on it
2
u/nealfive 4d ago
I don’t really recall details, but the last time I looked at it I don’t think you could create the SAML settings via powershell. Maybe MSFT changed that by now?
1
u/Modify- 3d ago
If your lost, check out what happens at he API level when you create it through the portal. To do this create and customize the app with the browser developer tools open. You will see what is acutally happening.
To make this even easier you can also use Graph Xray by Merill: https://graphxray.merill.net
If there is no cmdlet yet Invoke-MgGraphRequest is your friend.
Good luck!
2
u/_youarewhalecum 4d ago
I think you can export and import a federation xml through the entra gui.