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?
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?
2 answers
Sort by: Newest
-
-
Marilee Turscak-MSFT 34,791 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
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.