question

LarryRios-0977 avatar image
0 Votes"
LarryRios-0977 asked LarryRios-0977 edited

Azure Portal - User attribute for Time Zone

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?

azure-ad-user-managementazure-ad-user-provisioning
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered

Hi @LarryRios-0977,

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.



image.png (142.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LarryRios-0977 avatar image
0 Votes"
LarryRios-0977 answered LarryRios-0977 edited

Thanks, @MarileeTurscak-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?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.