Hello @Fraczek, Rafal SW/WRO-DCDZA,
Thank you for posting your query on Microsoft Q&A.
Based on your description, I understand that you are trying to retrieve 'Attributes & Claims
' from the SAML application configuration using PowerShell, specifically referring to the Graph command Get-MgBetaServicePrincipalClaimMappingPolicy
. However, this command returns an empty result because it only provides output if the application is assigned a claim mapping policy. Since your service principal is not associated with any claim mapping policies, the output is empty, as expected.
Regarding reading 'Attributes & Claims' from a SAML Entra application configuration via PowerShell, unfortunately, it is currently not possible to export the configured list of User Attributes & Claims for a given Azure service principal via PowerShell or Graph API.
The commands you are using only display claim mapping policies that are applied to a service principal.
You can refer to the following document to learn how to create a claim mapping policy and assign it to a service principal:
https://learn.microsoft.com/en-us/entra/identity-platform/claims-customization-powershell
Additionally, we encourage you to share your feedback on our Azure Feedback Portal channel. This platform allows the user community to upvote and comment on suggestions, which helps our product teams prioritize feature requests more effectively based on their potential impact.
And I found similar ask on another thread. Sharing here for reference. https://learn.microsoft.com/en-us/answers/questions/344648/export-the-user-attributes-claims-for-azure-servic
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Thanks,
Raja Pothuraju.