No Results
Copy Role

EdgeCore version: 4.3.0

Method

POST /public/roles/{roleToBeCopied}/copy/{newRole}

Used to copy a role. The new role will have the same permissions, provisioned content, and domains as the original one.

Parameters

Name Type Description Mandatory
roleToBeCopied
string Role that you want to copy Yes
newRole
string New role Yes

 

cURL example

curl --location --request POST 'http://localhost:8080/public/roles/Editor/copy/Tester' \
--header 'edgeApiKey: YWRtaW5AZGVmYXVsdHx3IDNHe2tMZTYhMkZkO3J3cipDaSZUdio5' 

Example Response

{
    "doClass": "AccountRoleDO",
    "id": "42342v-cksiqv1ot4cm",
    "hidden": false,
    "name": "Tester",
    "userCount": -1,
    "adapterName": "embedded",
    "deletable": true,
    "attributes": {},
    "permissions": [],
    "securityPermissions": [
     {
            "doClass": "SecurityPermissionDO",
            "name": "permission.provisioning.content",
            "displayName": "Assign Content",
            "subPermissions": []
        },
        {
            "doClass": "SecurityPermissionDO",
            "name": "permission.pipeline",
            "displayName": "Edit Pipeline",
            "subPermissions": []
        },
        {
            "doClass": "SecurityPermissionDO",
            "name": "permission.content",
            "displayName": "Content (Pages & Folders)",
            "subPermissions": [
                {
                    "doClass": "SecurityPermissionDO",
                    "name": "permission.content.edit",
                    "displayName": "Edit",
                    "subPermissions": []
                },
                {
                    "doClass": "SecurityPermissionDO",
                    "name": "permission.content.view",
                    "displayName": "View",
                    "subPermissions": []
                }
            ]
        }
    ],
    "privileges": {},
    "notificationTemplateIds": [],
    "parentRoleId": null
}

Response Fields

Name Type Description
doClass
string Name of the object’s class
id
string Auto-generated id
hidden
boolean LDAP related
name
string The role name
userCount
integer Number of users in the role
adapterName
string “embedded” for internal roles; otherwise name of the LDAP adapter if the role comes from LDAP
deletable
boolean Indicates whether the role can be deleted
attributes
object LDAP related
permissions
array List of domain permissions
securityPermissions
array List of security permissions
privileges
object RPA related
notificationTemplateIds
array List of IDs for any pipeline notifications that have been activated for the role
parentRoleId
string LDAP related

 

HTTP Response

Code Status Description
201 Created The request has succeeded and a new resource has been created as a result.

Terms | Privacy