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 users groups
All users with Perforce access in the space are listed in the “Users & Groups” section. To create a new group click the “+ Add group” link:
Next, select the group name and assign users.
Confirm user selection and click the “Add” button to create a group.
Manage users in the group
To manage users inside the selected group, click the “Users” counter next to the selected group name, and simply add or remove users.
Set 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.
Manage 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.
Manage 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 click the “+ Add permissions rule” button:
You will be presented with a rule creation form allowing you to 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.
Choose access level
Select type of access level for the rule:
Write - users can submit open files
Open - users can open files for add, edit, delete, and integrate
Read - users can sync, diff, and print files
List - users can see names but not contents of files; users can see all non-file related metadata (workspaces, users, changelists, jobs, etc.
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.
No write - opposite of write
No access - users can’t access at all
Only read - If this right is denied, users cannot use p4 print, p4 diff, or p4 sync on files.
Only write - If this right is denied, users cannot submit open files.
Read more on the access permissions in Perforce Server Administrator's Guide.
Select users or groups for the rule
Select users or groups this rule should apply to.
Define the path for the rule
For each rule, you need to define the path the rule is going to be applied. The path may include wildcards.
* - 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/...
Read more in the P4Admin User's Guide and Perforce File Specifications.
Set 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 the “Submit” button 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 button or remove it completely by using the “Trashcan” icon button.
If you have any questions or need our assistance, don't hesitate to contact us at support@assembla.com.