Share via

Azure AD SSO SAML Claims Attribute - User.manager

james bennett 51 Reputation points
2021-12-06T18:37:45.307+00:00

Hi,

I'm trying to add a custom SAML Claims attribute to my Enterprise App but the attribute I need isn't showing up. It's the Manager attribute and it is there on the User account but just not visible as a clams attribute.

I've read that is currently isn't supported but can anyone else confirm?

https://learn.microsoft.com/en-us/answers/questions/332964/saml-claim-for-manager-value.html

Microsoft Security | Microsoft Entra | Microsoft Entra ID

4 answers

Sort by: Most helpful
  1. Jackie Palm 20 Reputation points
    2023-11-10T21:52:17.96+00:00

    This is a combination of the answers from Siva-kumar-selvaraj and DavidMoreno-4043. They get all the credit. I just wanted to put it in one screen since I don't always read all the comments and it took me a while to figure this out.

    From Siva-kumar-selvaraj

    Alternatively, you would have to use one of the "user.extensionattribute(s)" to map it to manager attribute by creating new outbound sync custom rule

    155973-image.png

    Steps to create Inbound custom Rule on Sync server:

    1. Sign in to the server that is running Azure AD Connect sync by using an account that is a member of the ADSyncAdmins security group.
    2. Start Synchronization Rules Editor from the Start menu.
    3. Make sure Inbound is selected, and click Add New Rule.
    4. Give the rule a descriptive name, such as "In from AD – Send users SAM account value to Azure AD for salesforce". Select “local ad forest”, select User as the CS object type, and select Person as the MV object type. In Link Type, select Join. In Precedence, type a value that isn't currently used by another synchronization rule (for example 51 or 90), and then click Next. 155967-image.png
    5. Leave the Scoping filter Join rules empty, and then click Next. (An empty filter indicates that the rule is to be applied to all objects.)

    Adjustment from DavidMoreno-4043 in bold for step 6.

    1. Click Add Transformation, select the FlowType as Expression, and select extensionattribute(1-15) as the Target Attribute. In the Source text box, enter DNComponent(CRef([manager]),1). Click Add to save the rule.

    User's image

    More Details:

    https://learn.microsoft.com/en-us/azure/active-directory/cloud-sync/reference-expressions#dncomponent

    Safety precaution:
    You can also try to enable staging mode and disable the scheduler on the Azure AD connect server while we are performing above mentioned steps and we will have to execute the full sync cycle except “export cycle of AAD connector” manually so that can make sure all changes are legitimate.

    7.Post saving the sync rule. Open PowerShell wizard with Admin privileges and execute following command on the Sync server to Start-ADSyncSyncCycle -PolicyType Initial to trigger full synchronization. This step recalculates all attribute flows.

    More Details:
    https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sync-change-the-configuration#create-your-first-custom-rule

    Hopefully putting their answers together will help someone else with this issue. I am thrilled to say this worked for me and I am very thankful for the info.

    Was this answer helpful?

    3 people found this answer helpful.

  2. DavidMoreno-4043 35 Reputation points
    2023-02-08T13:14:33.4733333+00:00

    Hi guys,

    You can do it using the Dncomponent function from VBA

    https://learn.microsoft.com/en-us/azure/active-directory/cloud-sync/reference-expressions#dncomponent

    But first you should change the flowType to "expression" and in the source column put as below:

    DNComponent(CRef([manager]),1)

    Manager in this case, or whatever you want. The number specifies what value you want from left.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  3. C C 1 Reputation point
    2022-02-24T12:11:03.693+00:00

    Hi team,

    I have tried to set up this custom sync rule but go the error attached. 177490-1194b0db-d40a-4642-ad69-df6455cc01a0.jpg

    Have you seen this error or know how it can be resolved?

    Was this answer helpful?


  4. Siva-kumar-selvaraj 15,741 Reputation points Volunteer Moderator
    2021-12-08T16:21:21.587+00:00

    Hello @james bennett ,

    Thanks for reaching out.

    Yes, I confirmed this functionality once again with the product group and understand that the manager attribute is not available for direct selection in Enterprise applications as SAML claims as of today.

    Alternatively, you would have to use one of the "user.extensionattribute(s)" to map it to manager attribute by creating new outbound sync custom rule

    155973-image.png

    Steps to create Inbound custom Rule on Sync server:

    1. Sign in to the server that is running Azure AD Connect sync by using an account that is a member of the ADSyncAdmins security group.
    2. Start Synchronization Rules Editor from the Start menu.
    3. Make sure Inbound is selected, and click Add New Rule.
    4. Give the rule a descriptive name, such as "In from AD – Send users SAM account value to Azure AD for salesforce". Select “local ad forest”, select User as the CS object type, and select Person as the MV object type. In Link Type, select Join. In Precedence, type a value that isn't currently used by another synchronization rule (for example 51 or 90), and then click Next. 155967-image.png
    5. Leave the Scoping filter Join rules empty, and then click Next. (An empty filter indicates that the rule is to be applied to all objects.)
    6. Click Add Transformation, select the FlowType as Direct, and select extensionattribute(1-15) as the Target Attribute. In the Source text box, select “manager”. Click Add to save the rule. 155989-image.png

    Safety precaution:
    You can also try to enable staging mode and disable the scheduler on the Azure AD connect server while we are performing above mentioned steps and we will have to execute the full sync cycle except “export cycle of AAD connector” manually so that can make sure all changes are legitimate.

    7.Post saving the sync rule. Open PowerShell wizard with Admin privileges and execute following command on the Sync server to Start-ADSyncSyncCycle -PolicyType Initial to trigger full synchronization. This step recalculates all attribute flows.

    More Details:
    https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sync-change-the-configuration#create-your-first-custom-rule


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.