Jump to content
ahtrc

View path permissions (secured paths) from command line

Recommended Posts

Hi there,

I have a branch specific path permission I have applied via the cm acl command which I can see in the GUI, but I am not seeing a way to view this using the showacl command or similar. It only shows the inherited repository permissions. Is there a way to do it?

Thanks!

 

Example: User 1 has permissions on path "/" in branch "/main".

image.png.40c3c07b748694b4ae19b92bd6c04d70.png

showacl command does not show User 1.

PS C:\Users\ahtrc\wkspaces\tempwk> cm showacl br:/main@reponame1
ACL: 0
User               Permission         Allowed  Denied  InheritedFrom
User 2             add                Yes              repserver:servername:serverport
User 2             advancedquery      Yes              repserver:servername:serverport
User 2             all                Yes              repserver:servername:serverport
User 2             applyattr          Yes              repserver:servername:serverport
User 2             applylabel         Yes              repserver:servername:serverport
User 2             changecomment      Yes              repserver:servername:serverport
User 2             change             Yes              repserver:servername:serverport
User 2             chgowner           Yes              repserver:servername:serverport
User 2             chgperm            Yes              repserver:servername:serverport
User 2             ci                 Yes              repserver:servername:serverport
User 2             configlocks        Yes              repserver:servername:serverport
User 2             mergefrom          Yes              repserver:servername:serverport
User 2             mkattr             Yes              repserver:servername:serverport
User 2             mkchildbranch      Yes              repserver:servername:serverport
User 2             mklabel            Yes              repserver:servername:serverport
User 2             mkrepository       Yes              repserver:servername:serverport
User 2             mktop-levelbranch  Yes              repserver:servername:serverport
User 2             mktrigger          Yes              repserver:servername:serverport
User 2             move               Yes              repserver:servername:serverport
User 2             read               Yes              repserver:servername:serverport
User 2             rename             Yes              repserver:servername:serverport
User 2             replicateread      Yes              repserver:servername:serverport
User 2             replicatewrite     Yes              repserver:servername:serverport
User 2             rmattr             Yes              repserver:servername:serverport
User 2             rmchangeset        Yes              repserver:servername:serverport
User 2             rmlabel            Yes              repserver:servername:serverport
User 2             rmrepository       Yes              repserver:servername:serverport
User 2             rm                 Yes              repserver:servername:serverport
User 2             rmtrigger          Yes              repserver:servername:serverport
User 2             view               Yes              repserver:servername:serverport
User 3             add                Yes              repserver:servername:serverport
User 3             advancedquery               Yes     repserver:servername:serverport
User 3             applyattr          Yes              repserver:servername:serverport
User 3             applylabel         Yes              repserver:servername:serverport
User 3             changecomment      Yes              repserver:servername:serverport
User 3             change             Yes              repserver:servername:serverport
User 3             chgowner                    Yes     repserver:servername:serverport
User 3             chgperm            Yes              repserver:servername:serverport
User 3             ci                          Yes     repserver:servername:serverport
User 3             configlocks                 Yes     repserver:servername:serverport
User 3             mergefrom          Yes              repserver:servername:serverport
User 3             mkattr             Yes              repserver:servername:serverport
User 3             mkchildbranch      Yes              repserver:servername:serverport
User 3             mklabel            Yes              repserver:servername:serverport
User 3             mkrepository       Yes              repserver:servername:serverport
User 3             mktop-levelbranch  Yes              repserver:servername:serverport
User 3             mktrigger                   Yes     repserver:servername:serverport
User 3             move               Yes              repserver:servername:serverport
User 3             read               Yes              repserver:servername:serverport
User 3             rename             Yes              repserver:servername:serverport
User 3             replicateread      Yes              repserver:servername:serverport
User 3             replicatewrite     Yes              repserver:servername:serverport
User 3             rmattr             Yes              repserver:servername:serverport
User 3             rmchangeset                 Yes     repserver:servername:serverport
User 3             rmlabel            Yes              repserver:servername:serverport
User 3             rmrepository                Yes     repserver:servername:serverport
User 3             rm                 Yes              repserver:servername:serverport
User 3             rmtrigger                   Yes     repserver:servername:serverport
User 3             view               Yes              repserver:servername:serverport
User 4             read               Yes              repserver:servername:serverport
User 4             view               Yes              repserver:servername:serverport

Also tried using other objectspecs with showacl, with no luck:

  • item:C:\Users\ahtrc\wkspaces\tempwk\
  • item:/@reponame1@servername:serverport
  • path:/@reponame1@servername:serverport
  • path:/
  • item:/

Share this post


Link to post
Share on other sites

Hello,

I think the best way to get this information is:

cm find securedpaths
32       /src                 NO TAG SPECIFIED     /main/task001
36       /lib                 NO TAG SPECIFIED     /main/task001
38       /lib                 task001              /main/task001
41       /lib                 main                 /main

Once you have this information, you can run the following command for your desired branch to show the path permissions:

cm sa path:/doc --branches=/main/task001

Regards,

Carlos.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...