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