Hi
@Stan Vasil and
@Hichem Agrebi,
I have a similar situation and am using api's to copy some roles from my dev org to prod org .
to copy role from dev org i am using api : GET /api/v2/authorization/roles
to create same role in prod i am using api : POST /api/v2/authorization/roles
After this when i go to prod org and open the newly copied role i see a notice ""Your default role is out of date"" .
1) if I 'click to see changes' , its just stuck and processing and not showing anything.
2) dismiss new changes and save but unsure of what will it do?
3) upon save , the error is going away , but I doubt if it is a correct way ?
By any chance , did you stumble upon a similar issue ?
Attaching snapshot :
------------------------------
Garima Balodi
Accenture Solutions Private Limited
------------------------------
Original Message:
Sent: 09-02-2021 05:33
From: Stan Vasil
Subject: Copy - Paste Roles and Permissions from one Org to another
Hi Hichem
Thanks so much for your response and appreciate the help. I'm not a developer, so I don't necessarily know what all above does, but will look into it with one of my colleagues and will forward it to the customer. Hopefully this will help someone in the Genesys Community as well.
Thanks again and have a great day.
Stan
------------------------------
Stan Vasil
eleven (GEMA Consulting Ireland Limited)
Original Message:
Sent: 09-02-2021 04:52
From: Hichem Agrebi
Subject: Copy - Paste Roles and Permissions from one Org to another
Hi Stan
GET /api/v2/authorization/roles allows you to retrieve the roles from your test org
POST /api/v2/authorization/roles (with the below body) allows you to create the roles in the production org.
{
"name": "",
"description": "",
"defaultRoleId": "",
"permissions": [],
"permissionPolicies": [
{
"domain": "",
"entityName": "",
"policyName": "",
"policyDescription": "",
"actionSet": [],
"namedResources": [],
"allowConditions": true,
"resourceConditionNode": {
"variableName": "",
"operator": "",
"operands": [
{
"user": {},
"queue": {},
"value": "",
"type": ""
}
],
"conjunction": "",
"terms": [
{
"variableName": "",
"operator": "",
"operands": [
{}
],
"conjunction": "",
"terms": [
{}
]
}
]
}
}
],
"userCount": 0,
"roleNeedsUpdate": true,
"default": true,
"base": true
}
------------------------------
Hichem Agrebi
hichem.agrebi@cc-expertise.com
CC-Expertise Ltd
Original Message:
Sent: 09-01-2021 07:19
From: Stan Vasil
Subject: Copy - Paste Roles and Permissions from one Org to another
Hi all
Is it possible to replicate roles for a group, from one org to another? We've got a company group with about 10members. Linked our org with the customer's org, under that group. The customer has added all Roles and Permissions as per our need manually. They have a test org and we'd like to replicate the same for their test org, without customer needing to go through the manual process again.
I've pulled the group Roles through an API:GET/api/v2/authorization/subjects/"group ID" << this gave me 700 lines of data, not the simplest task to navigate through.
This API call was sent to me too:
/api/v2/authorization/roles << should give the whole list of Roles for the prod org.
Anyone has tried something like this? How to implement the Roles I've pulled from the Prod Org into the Test Org?
Any help is much appreciated.
Thanks,
Stan
#Ask Me Anything (AMA)
#PlatformAdministration
------------------------------
Stan Vasil
eleven (GEMA Consulting Ireland Limited)
------------------------------