Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2026.1

# p4 check-permission (graph)

Check access permission granted to a user of a repo. This command is for graph depots 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

Syntax and naming conventions

## Description

- An 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 `admin` permission 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 whether `marie` has the `create-repo` permission to the `//gd1/name2` repo provided that `bruno` has this same permission or higher for this same repo. For details about types of permissions, see p4 grant-permission (graph).

## Options

Option | Description
--- | ---
`-n` | Applies to the repo with the specified name.
`-u` | Applies to the specified user.
`-p` | Applies to the specified permission.
all | Used to list all the permissions explicitly
`-r` | (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
`p4 check-permission -n //repo/qa/main -u bruno -p all` | 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 | p4 show-permission (graph)
Display a user-centric view of the permissions for repos across multiple repos or depots of type graph | p4 show-permissions (graph)
Assign a graph permission to a user or group | p4 grant-permission (graph)

Your search for returned results