Legacy Dev Forum Posts

 View Only

Sign Up

Obtain the timezone of a user

  • 1.  Obtain the timezone of a user

    Posted 06-05-2025 18:12

    Jacou | 2017-08-11 13:59:25 UTC | #1

    Hello,

    As part of our provisioning flow we need to obtain the timezone of the user. Is there a way to query the API to obtain such info? Would this info be contained as part of the "locations" of a user?

    thanks


    tim.smith | 2017-08-11 14:38:43 UTC | #2

    I'm not sure what timezone you're referring to. Can you point out where you're seeing this in the UI?


    Jacou | 2017-08-11 16:27:08 UTC | #3

    Actually I couldn't find a place in the UI where that would be used other than possibly within the locations part where for instance the UI asks me to set my location every time I log in.

    Although we use UTC pretty much everything, we still need to understand when a calendar day ends for an agent to trigger a bunch of things. I was hoping there was a place in Purecloud where the user's default TZ was stored. Or possibly a management unit or company default TZ would also be helpful.

    I understand this TZ concept might be something that do not exist in Purecloud.


    tim.smith | 2017-08-11 16:31:16 UTC | #4

    You could configure users with a location and then look up the location for a user and make an assumption about their timezone based on the location. PureCloud doesn't have a concept of a user being located in a particular timezone.


    Langsford_Jay | 2017-08-15 12:15:11 UTC | #5

    The management unit does have a time zone. Management units may be setup such that agents work across multiple time zones though.

    GET /api/v2/workforcemanagement/managementunits

    Jacou | 2017-08-15 13:37:17 UTC | #6

    Thanks Jay, so I see the timezone in the UI of the Management Units section, I cannot change it however (this is fine). When I GET on a specific management unit (for instance, /api/v2/workforcemanagement/managementunits/{mu_id}, I will get more details than the general /api/v2/workforcemanagement/managementunits. For instance I receive this info:

    {u'selfUri': u'/api/v2/workforcemanagement/managementunits/{muid}', u'name': u'Sales Agents', u'id': {muid}', u'version': 167, u'startDayOfWeek': u'Monday', u'dateModified': u'2017-08-14T21:27:02.000Z'}

    I am not seeing the Timezone however. Am I missing a specific Expand on this call?

    Here is an example (not same MU however) of the Timezone I see in the UI. <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/0962c29d346d191d694332b8fa1969effc751689.png" width="690" height="242">


    Behymer_Joe | 2017-08-15 15:08:35 UTC | #7

    This is a bug, you should be getting the time zone back in your object. We are going to fix this ASAP, I am tracking it internally as WFM-3045


    system | 2017-09-15 15:08:37 UTC | #8

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 1671