Azure Portal - User attribute for Time Zone

Larry Rios 1 Reputation point
2022-05-09T14:31:16.05+00:00

Hello, our Salesforce application has a requirement to include Time Zone for each user. Is there a way to include Time Zone either by a custom attribute or some other way where we can specify time zone per user in the Azure Portal?

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

2 answers

Sort by: Most helpful
  1. Marilee Turscak-MSFT 34,311 Reputation points Microsoft Employee
    2022-05-09T22:01:40.61+00:00

    Hi @Larry Rios ,

    Thank you for your post!

    Our Salesforce connector has a default mapping that flows the following constant "America/Los_Angeles" to the Salesforce attribute called TimeZoneSidKey

    200452-image.png

    This mapping could be modified to use a direct mapping to an AAD attribute or you could create an expression using the Switch statement where you could establish a timezone depending on a location: Reference for writing expressions for attribute mappings in Azure Active Directory Application Provisioning

    The document includes an example that populates a timezone based on the state attribute:

    Expression: Switch([state], "Australia/Sydney", "NSW", "Australia/Sydney","QLD", "Australia/Brisbane", "SA", "Australia/Adelaide")

    INPUT (state): "QLD"
    OUTPUT: "Australia/Brisbane"

    Feel free to reach out if you have further questions!

    Marilee

    -

    If this answer was helpful to you, please remember to "mark as answer" so that others in the community with similar question can more easily find a solution.

    0 comments No comments

  2. Larry Rios 1 Reputation point
    2022-05-10T13:10:22.767+00:00

    Thanks, @Marilee Turscak-MSFT , this attribute will update all users. We have staff that works in different time zones. How can we select a time zone per user?

    0 comments No comments