Skip to main content
All CollectionsUsing Perforce
Perforce access permissions & logoff timeouts
Perforce access permissions & logoff timeouts

Manage access permissions & logoff timeouts in your Perforce depot

Toshi Dávila avatar
Written by Toshi Dávila
Updated today

The P4Admin tab in your Perforce depot view allows you to manage access permissions for your project. You can create Perforce users groups, set logoff timeout, and edit the protections table.

Navigate to Your Space > Perforce Depot > P4Admin tab to manage groups & permissions.

Creating user groups

All users with Perforce access in the space are listed in the Users & Groups section.

To create a new group

  1. Click the + Add group link.

  2. Next, type the group name and assign users.

  3. Confirm user selection, and then click Add to create a group.

Managing users in the group

To manage users inside the selected group, click the Users counter next to the selected group name, and then simply add or remove users.

Setting logoff timeouts

You can set the logoff timeout for each group, by clicking Login timeout next to the selected group. Logoff timeout may be set only for the group, not individual users.

Managing groups for the users

You can also manage what groups are assigned to selected users. To do that click the group counter link next to the selected user and select what groups the user should be part of.

Managing the Perforce depot access permissions table

The permissions section in the P4Admin tab allows you to manage access permissions for users and user groups. You can create access rules and manage them in the protections table.

Navigate to Your Space > Perforce Depot > P4Admin > Permissions page.

Creating permission rules

To create a new rule

  1. Navigate to P4 Admin > Permissions.

  2. Click + Add permission rule.

  3. In the rule creation form, set: access level, group or user, the path to folder or file, and free comment to describe the rule if needed.

You can create multiple rules to mix-up the permissions, as well as set the ruling order which allows creating more advanced combinations.

Choosing access levels for your rule

Select the type of access level for the rule. Available options include:

  • No access. Users cannot access these files.

  • Write. Users can submit open files.

  • No write. Users cannot submit open files.

  • Write only. If this right is denied, users cannot submit open files.

  • Read. Users can sync, diff, and print files.

  • Read only. If this right is denied, users cannot use p4 print, p4 diff, or p4 sync on files.

  • List. Users can see names but not contents of files; users can see all non-file related metadata (workspaces, users, changelists, jobs, etc.

  • Open. Users can open files for add, edit, delete, and integrate.

  • Review. A special permission granted to review daemons. It includes list and read access, plus use of the p4 review command. Only review daemons require this permission.

Read more on the access permissions in Perforce Server Administrator's Guide.

Selecting users or groups for the rule

The Set for column displays a list of the users or groups to which this rule should apply.

Defining the folder or file path for the rule

For each rule, you need to define the folder or file path to which the rule is applied. The path may include wildcards. Valid wildcards include:

  • * Matches all characters except slashes within one directory.

  • Matches all files under the current working directory and all subdirectories.

  • %%1 - %%9 Positional specifiers for substring rearrangement in filenames, when used in views.

For example:

write       user       *           /... 
read user emily /elm_proj/%%1.%%2
list group devops /...
list user lisag /builds/*/help
write user lisag /elm_proj/doc/...

Setting rules order

You can also select what position on the list the rule should have by clicking the up and down arrow buttons. This allows applying rules in the correct order to achieve more complex configurations.

Submit a new rule

Simply click Submit to create a new rule or apply changes to an existing one. If any of the rule conditions are not correct you will see an error message.

Edit or remove an existing rule

You can edit any of the existing rules by clicking the edit icon (pencil) or remove the rule completely by using the trash can icon.

If you have any questions or need our assistance, don't hesitate to contact us at support@assembla.com.

Did this answer your question?