Skip to main content

Page permissions

Pages have 4 regular CRUD permissions: create, read, update and delete.

Currently only read permission can be modified.

Get page permissions

Any user can get the permissions of a specific page, using any of the following methods:

In your software catalog, choose the page for which you would like to view permissions, then click on Permissions:

note

Only page permissions of software catalog pages can be requested. For example, the permissions for the Builder page and the audit log page cannot be changed.

Update page permissions

Only users with the admin role can update the permissions of a catalog page, using any of the following methods:

In your software catalog, choose the page for which you would like to edit permissions, then click on Permissions. Choose the user/s or team/s that you would like to give permissions to, then click on Done.

Examples

Let's present a set of page permissions and then explore how different PATCH request bodies change the effective permissions of the page.

Given the following permissions for a page:

{
"read": {
"roles": ["Admin", "Member"],
"users": [],
"teams": []
}
}

Add permissions to role

Making an HTTP PATCH request with the following body will give the Services-Moderator role permissions to view the page (without removing the permissions of any existing role):

{
"read": {
"roles": ["Admin", "Member", "Services-Moderator"]
}
}

Remove permissions from role

Making an HTTP PATCH request with the following body will remove the Member roles' permissions to view the page:

{
"read": {
"roles": ["Admin"]
}
}

Add permissions to user

Making an HTTP PATCH request with the following body will give the specified users permissions to view the page (without changing the permissions of existing roles):

{
"read": {
"users": ["exampleUser1@example.com", "exampleUser2@example.com"]
}
}

Add permissions to team

Making an HTTP PATCH request with the following body will give the specified teams permissions to view the page (without changing the permissions of existing roles):

{
"read": {
"teams": ["Team 1", "Team 2"]
}
}
info

It is possible to update multiple permission keys (roles, teams and/or users) in a single PATCH request, just keep in mind that any role, team or user that is not specified and previously had permissions to the page, will lose those permissions.

Lock pages

Locking the page affects widgets that have Filter and/or Hide functionality.

See the section below for the different methods to lock a page:

To lock a page, make an HTTP PATCH request to the following URL: https://api.getport.io/v1/pages/{page_identifier}

with the following body:

{
"locked": true
}
note

A locked page will have the Lock icon next to the page's title.

Locked Page