Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Export and Import using CXasCode

    Posted 07-12-2022 02:30
    No replies, thread closed.
    Hi,

    We are trying to create a user using CXasCode export and import.
    Tried to export the user from one organization and trying to import to other organization Genesys Cloud instance.
    when we use the exported json code and reused the same code in main.tf file and passing the target organization details in the same file (main.tf) and running the commands"terraform plan" and "terraform apply". When we executing the terraform command we are getting permission error even though having all the permissions.
    Can anyone please guide us to resolve this issue.


    Thank you
    Bharath
    #Unsure/Other

    ------------------------------
    Bharath Gowda
    Skylux Inc
    ------------------------------


  • 2.  RE: Export and Import using CXasCode

    Posted 07-13-2022 11:50
    No replies, thread closed.
    Bharath,

    Your CXasCode is most likely using an OAuth client defined in the destination org where you want to create the new user.  That OAuth client is a Client Credentials grant and those have roles assigned to them.  My guess is that you don't have a role assigned to that OAuth client that contains the "directory:user:add" permission for the "Home" division.

    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 3.  RE: Export and Import using CXasCode

    Posted 07-14-2022 02:58
    No replies, thread closed.
    Hi Jim Crespino,

    We have given the Super Admin access to both the organization and assigned the roles to OAuth client credentials.
    Still the same issue, can you please give us some idea to work on CX as Code?

    Thank you
    Bharath

    ------------------------------
    Bharath Gowda
    Skylux Inc
    ------------------------------



  • 4.  RE: Export and Import using CXasCode

    Posted 07-14-2022 03:46
    No replies, thread closed.
    Hi Bharath,

    The Super/Master Admin role doesn't necessarily 'every single permission' in it by default. As pointed out by Jim in his response, please check that the role consumed by the OAuth client has the asked for permission or not. If in doubt, you could simply go in and check if the assigned role (in your case Super Admin Role) has the required permission (as printed on the console output by Terraform) or not in the target Org.

    This by all means should solve your problem.

    Thanks & Regards,

    ------------------------------
    John Lazarus
    Conn3ct (Connect Managed Services (UK) Limited)
    ------------------------------



  • 5.  RE: Export and Import using CXasCode

    Posted 07-14-2022 05:23
    No replies, thread closed.
    Hi,

    Thank you for the support John and Jim, the issue is resolved.

    Thank you
    Bharath

    ------------------------------
    Bharath Gowda
    Skylux Inc
    ------------------------------