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)
------------------------------
Original Message:
Sent: 07-14-2022 02:57
From: Bharath Gowda
Subject: Export and Import using CXasCode
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
------------------------------
Original Message:
Sent: 07-13-2022 11:49
From: Jim Crespino
Subject: Export and Import using CXasCode
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