Forum Discussion

kgroneman's avatar
7 years ago

Query to find role definitions

I'm looking for a way to find role definitions at node levels.   For example if a role is created at the community level, then somewhere far down in the community that role is recreated and permissions changed, I want to be able to find that role definition without having to search each node.  Is there an API call that would show me?  I was hoping this would, but it doesn't:

https://community.[your community].com/restapi/vc/roles/name/[role name]/node

  • kgroneman,

    Using this API you can view node for role

    http://community.lithium.com/community-name/restapi/vc/roles/id/1234/node
    • kgroneman's avatar
      kgroneman
      Boss

      Thanks but that doesn't work for me.  It gives categories under the community root, but nothing else.  I've tested it on roles I know exist down the tree. and those nodes don't appear in the results. What's the difference between /node and /community?  They both seem to return the same results as far as I can tell.