Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Azure DevOps Services | Azure DevOps Server | Azure DevOps Server 2022
Set permissions on queries and query folders to control who can create, edit, delete, and manage them.
- My Queries — All users except Readers can create and edit their own queries. Only the signed-in user can view them.
- Shared Queries — By default, only Project Administrators can create, edit, or change permissions. Create a folder for each team so they can manage their own shared queries.
For more information, see Organize queries.
Note
The following images show the New Boards Hub feature enabled by default. For more information, see Manage or enable features.
Prerequisites
| Category | Requirements |
|---|---|
| Access levels | At least Basic access. Users with Stakeholder access can't create or save queries in a shared folder. |
| Permissions | - To manage permissions, be a member of the Project Administrators group. - To create or edit a shared query, have Contribute set to Allow for the shared query folder. - To change permissions on a query or folder, have Manage Permissions set to Allow for that folder. |
Default query permissions
A ✔️ (checkmark) in the following table indicates that the corresponding security group has permission to exercise the task by default.
Task
Readers
Contributors
Project admins
View and run managed queries, view query charts
✔️
✔️
✔️
Create and save managed My queries, query charts
✔️
✔️
Create, delete, and save Shared queries, charts, folders
✔️
Set permissions on a new query folder
Tip
To rename or move a shared query or folder, you need Delete and Contribute permissions for the destination folder.
From your project, select Boards > Queries > All > Shared Queries.
Select New folder.
Enter the folder name and select the parent folder from the dropdown list.
This example creates a Service Delivery folder for that team.
Select More actions
> Security.
Search for the user or group, then grant them Contribute and Manage Permissions for the folder.
This example grants the Service Delivery team both permissions for all queries and subfolders under their folder.
- Contribute — Create and edit queries and folders.
- Manage Permissions — Change permission settings on queries and subfolders.
(Optional) Turn off inheritance to prevent permissions from being inherited from parent folders. For more information, see Permissions, Inheritance.
Close the dialog, then reopen it and select the team to verify the permissions.
Choose All. Expand Shared Queries.
To add a folder, choose the More actions icon
for an existing folder or the top container folder, and choose New folder.
Enter the folder name. To change the location, select Rename from the folder dropdown menu.
This example creates a Service Delivery folder for that team.
Choose the More actions icon
and select Security.Search for the user or group, then grant them Contribute and Manage Permissions for the folder.
This example grants the Service Delivery team both permissions for all queries and subfolders under their folder.
- Contribute — Create and edit queries and folders.
- Manage Permissions — Change permission settings on queries and subfolders.
(Optional) Turn off inheritance to prevent permissions from being inherited from parent folders. For more information, see Permissions, Inheritance.
Close the dialog, then reopen it and select the team to verify the permissions.
Set permissions on a shared query
To prevent others from modifying a shared query, set permissions directly on that query.
Select the More actions icon
and select Security.
Deny the relevant permissions for the user or group. This example denies permissions for the Disallow access group.
Select the More actions icon
and select Security.
Deny the relevant permissions for the user or group. This example denies permissions for the Disallow access group.