Azure Portal - User attribute for Time Zone

Larry Rios 6 Reputation points
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 Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Larry Rios 6 Reputation points
    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?

    1 person found this answer helpful.
    0 comments No comments

  2. Marilee Turscak-MSFT 37,271 Reputation points Microsoft Employee Moderator
    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

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.