Legacy Dev Forum Posts

 View Only

Sign Up

Export roles between accounts

  • 1.  Export roles between accounts

    Posted 06-05-2025 18:16

    joel_hellman | 2020-03-18 05:46:45 UTC | #1

    We have an account for testing and an account for production.

    I'd like to mirror some roles from testing to production (and vice versa). Since the role definitions with all permissions and roles can become fairly large, I'd like to avoid doing this task in the web UI.

    Do anyone have a good way to accomplish this export<>import of roles between accounts? Within the account its possible to copy a role, but that doesn't help me here.


    Becky_Powell | 2020-03-18 15:35:06 UTC | #2

    Hi Joel,

    We do not currently have support for exporting/importing roles between distinct organizations. That said, I absolutely see the value that this enhancement would provide. Can you please vote for this idea in our Ideas Lab? Doing so helps us to prioritize new features and provides you with updates as we progress through development.

    Thank you!


    joel_hellman | 2020-03-18 16:35:56 UTC | #3

    Alright, thanks for confirming and for the link. I added my vote and a comment of our use case.


    TheRealKevinGlinski | 2020-03-20 18:23:08 UTC | #4

    While the PureCloud app doesn't support it, programatically it shouldn't be too hard

    in org A call: GET /api/v2/authorization/roles/<roleid> then in org B post that response to POST /api/v2/authorization/roles

    If the role already exists, you can find it by name GET /api/v2/authorization/roles?name=<rolename>

    and then update it with a PUT /api/v2/authorization/roles/<roleid>


    joel_hellman | 2020-03-22 06:23:15 UTC | #5

    Thanks, I tried it out and it worked well. I didn't know about the name parameter, that was handy!


    system | 2020-04-22 06:23:16 UTC | #6

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