Legacy Dev Forum Posts

 View Only

Sign Up

Management Unit config api not returning scheduling section

  • 1.  Management Unit config api not returning scheduling section

    Posted 06-05-2025 18:19

    TheRealKevinGlinski | 2021-05-05 14:38:37 UTC | #1

    When the GC UI makes a call to get the MU configuration

    `/api/v2/workforcemanagement/managementunits/36962d42-73b4-4e03-b974-7e9cf9d703ba?expand=settings`

    the scheduling section is returned. When I make the same API call from my client credentials, the scheduling section is not returned. If i give my oauth client the admin role it is. So there is a permission between the client credentials role I'm using and the admin role that is needed for this section. Can I get clarification that this is the intended behavior and what that permission is?

    Thanks


    brian.trezise | 2021-05-07 13:43:57 UTC | #2

    Hi, thanks for reaching out. The schedule settings are indeed limited to only admin users. I just checked the documentation snd it appears we neglected to mention that, I'll make sure the documentation is corrected to make that clear. Thanks for pointing it out!


    TheRealKevinGlinski | 2021-05-07 13:55:17 UTC | #3

    Thanks Brian, admin users as in the need the actual admin role, or a specific permission in the admin role?


    TheRealKevinGlinski | 2021-05-07 14:00:15 UTC | #4

    Also, I think ` GET /api/v2/workforcemanagement/managementunits/{managementUnitId}` is marked as internal so doesn't show on the developer center


    brian.trezise | 2021-05-07 16:17:41 UTC | #5

    I just double checked, the permission required is specifically wfm:managementUnit:view

    The route is indeed public and should be on the developer center but I don't see it either, I'll check into why that might be


    TheRealKevinGlinski | 2021-05-07 16:17:38 UTC | #6

    Ran a test and confirmed that is the right permission, thanks!


    brian.trezise | 2021-05-07 16:46:17 UTC | #7

    Glad to hear it. Thanks for bringing the doc issue to my attention


    system | 2021-06-07 16:46:22 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: 10824