Forum Discussion

bma's avatar
bma
Mentor
10 years ago

API: Copying Permissions to another Node or Role (node A -> node B, role X -> role Y)

Hi,

 

I want to programmatically copy node A's Defaults permissions to node B, and copy/clone Role X configuration to Role Y (where the roles are on different nodes).

 

  1. Are there REST APIs to get/set a community or node's "Defaults" permissions' values (e.g. See categories: Default|Deny|Grant|Allow Grant)?
  2. Are there REST APIs to get/set a Roles' permissions' values (e.g. Read posts: Default|Deny|Grant|Allow Grant) at the community-level or specific node-level?
  3. Are there REST APIs to list the Permissions keys configurable at the community-level or specific node-level?

 

Thank you,

Ben

  • Bumping this question.  Has anything changed since API 1.0 that allows us via API to:

    1. copy/clone a role with all set permissions?
    2. if not, then API to read existing roles, get their permissions, create a new role and set permissions?