p4 check-permission (graph)
Check access permission granted to a user of a repo.
For depots of type graph only.
Syntax
p4 check-permission -n //repo/name -u user [-r ref] -p permission p4 check-permission -n //repo/name -u user [-r ref] -p all
Description
- Administrator or super user can use this command to check the permissions of any user of  a specified repo.An administrator is the owner, or a user that has been granted the adminpermission for that specific graph depot or repo.
- Any user can check the permission of another user that is at the same, or a lower, level. For example, user bruno, can check whethermariehas thecreate-repopermission to the//gd1/name2repo provided thatbrunohas this same permission or higher for this same repo. For details about types of permissions, see p4 grant-permission (graph).
Options
| 
 | Applies to the repo with the specified name. | 
| 
 | Applies to the specified user. | 
| 
 | Applies to the specified permission. | 
| all | Used to list all the permissions explicitly | 
| 
 | (Optional) Applies to the specified branch or tag. | 
Examples
| p4 check-permission -n //repo/qa/main -u bruno -p write-ref | Does user bruno have the write-ref permission to that repo? The output might be this confirmation: write-ref | 
| 
 | List each and every permission that user bruno has to that repo. The output might be: read, write-ref, write-all, create-repo | 
Related commands
| Display the permissions for the specified depot of type graph or a repo | |
| Display a user-centric view of the permissions for repos across multiple repos or depots of type graph | |
| Assign a graph permission to a user or group |