Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  PostUsersRoles returning

    Posted 02-13-2020 09:39
    No replies, thread closed.
    Hi. I'm using the .NET API to call PostUsersRole() to add the role of developer to a user. I have verified that Developer is a defined role in our environment but when I go to add this role to a user I get the following :

    {"status":400,"code":"general.bad.request","message":"Not all roles in this request were found in the organization.","messageParams":{},"contextId":"32d7eaaf-8859-48b2-9047-314c5b746aae","details":[],"errors":[]}

    I have verified that the user ID is valid and the user is active and I was adding in just the one role at the time. Any thoughts?

    Thanks.
    #Unsure/Other

    ------------------------------
    Sean McGrath
    Avtex Solutions, LLC
    ------------------------------


  • 2.  RE: PostUsersRoles returning

    Posted 02-13-2020 09:54
    No replies, thread closed.
    Send the role id not the role name

    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 3.  RE: PostUsersRoles returning

    Posted 02-13-2020 10:14
    No replies, thread closed.
    That was it. Thank you.

    ------------------------------
    Sean McGrath
    Avtex Solutions, LLC
    ------------------------------