Legacy Dev Forum Posts

 View Only

Sign Up

Need help on Best API to add divisions to roles without hardcoding subjectIds

  • 1.  Need help on Best API to add divisions to roles without hardcoding subjectIds

    Posted 06-05-2025 18:30

    Suren_T | 2024-04-25 15:10:17 UTC | #1

    Need best API to add divisions to roles without hardcoding subjectIds.

    What the best method and API to add divisions dynamically to roles without hardcoding subjectIds?

    Please advise. This is in the context of creating a new user automatically based on what's in Dayforce and creating a user, assigning User to a division, assigning Roles with related Divisions etc.

    Thank you Suren


    SimonBrown | 2024-04-26 15:15:59 UTC | #2

    Not fully understanding the ask but under User "subjects" you have the three POST endpoints

    * Grant of a role in a division * Replace subjects roles and divisions with list * Bulk grant roles and divisions to a subject

    In terms of the id's for roles/divisions and such you can gather those. I tend to use powershell and GC tool to automate some admin tasks but you can also do with other SDKs like Python.


    system | 2024-05-27 15:16:47 UTC | #3

    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: 25929