p4 show-permission (graph)

Display the permissions for the specified depot of type graph or a repo.

Note

For depots of type graph only.

Syntax

p4 [g-opts] show-permission -d graphDepot1 [-g group | -u user] [-r ref] [-p permission]
p4 [g-opts] show-permission -n //graphDepot1/reponame [-g group | -u user] [-r ref] [-p permission]

Syntax conventions

Description

Note

An administrator is the owner, or a user that has been granted the admin permission for that specific graph depot or repo.

The administrator uses this command to list the permission assignments for the specified depot of type graph or repo.

Note

Certain permissions implicitly include other permissions. If you specify a permission that can be implicit or explicit, such as write-ref, the list shows users that have the specified permission, either explicitly or implicitly, such as users with write-all and admin. See the "permissions" section of p4 grant permission.

Options

-d

Applies to the depot of type graph with the specified name.

-n

Applies to the repo with the specified name.

-g

Applies to the specified group.

-u

Applies to the specified user.

-p

Applies to the specified permission.

-r

(Optional) Applies to the specified branch or tag.

g-opts

See Global options.

Examples

To list the permissions to a depot of type graph, which includes all of its repos, use the -d option:

p4 show-permission -d graphDepot1

To list the permissions to the specified repo, use the n option with the //depot/repo syntax:

p4 show-permission -n //graphDepot1/repo1

To list the permissions of the specific user to the specified repo, use the -u and -n options:

p4 show-permission -u bruno -n //graphDepot1/repo1

To list all the users with the specified permission to the specified repo, use the -p option:

p4 show-permission -p read  -n //graphDepot1/repo1

Usage notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required

N/A

N/A

super,
admin, or the specified user

see p4 show-permission (graph)

Related commands

To assign a permission p4 grant-permission (graph)
To remove a permission p4 revoke-permission (graph)
To see a user-centric view across multiple repos or depots of type graph p4 show-permissions (graph)
Check access permission(s) granted to a user of a repo p4 check-permission (graph)