For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Grant permissions

Grant an application user the permissions it needs, then grant developers RunAsUser to act under its identity.

How to set up a user's permissions?

Before anyone can use an application user's identity, the application user must hold the right permissions. What those permissions are depends entirely on why the application user was created and what the people using it will need to do.

These steps are not specific to application users. The same process applies when granting permissions to any user in DataOS.

Only the Run As User grant is Operator-only, and it is made in Bifrost. Every other permission, such as Can Use, Can Edit, and Can Manage Access on a Resource, is granted from the Resource's Access tab in the Resource Catalog, which a Tenant Admin can do. See Manage access.

1

Add a role

In the user's profile in Bifrost, go to the Tags tab and click Add Role. Select the appropriate role for the Tenant.

Show screenshot
Add Role modal with Engineering Data Developer role selected
Assigning a role to the user
2

Confirm role tag

Once added, the role tag appears alongside the identity tag in the user's Tags tab.

Show screenshot
Tags tab showing both the role tag and identity tag
Role assigned: the user now has an authorization boundary in the Tenant
3

Grant additional use-cases if needed

If the assigned role does not already cover all the access needed, additional use-cases can be granted from the Grants tab.

Show screenshot
Grants tab before any use-cases are assigned
Grants tab: grant additional use-cases here if required

How to grant RunAsUser to a user?

Once the application user has the right permissions in place, the Operator grants the Run As User use-case to anyone who needs to act under that identity. This allows them to set runAsUser in a manifest and act under the application user's identity.

The grant is made on the application user's profile, not the grantee's. The Operator specifies the grantee's user ID as the subject of the grant.

1

Open application user’s Grants tab

From the DataOS home, go to Bifrost and open the Users tab. Open the application user's profile and go to the Grants tab.

Show screenshot
Application user's Grants tab in Bifrost
2

Start grant

Click Grant Use-Case.

3

Select Run As User use-case

In the use-case search field, type run as and select Run As User – run as a user in the DataOS, when applying runnable resources.

Show screenshot
Grant Use-Case dialog with Run As User selected
4

Enter grantee user ID

In the userId field, enter the user ID of the person who will be allowed to run as this application user.

Show screenshot
Grant form showing the userId field
5

Grant use-case

Click Grant.

The grant appears in the application user's Grants tab. The grantee can now set runAsUser to the application user's ID in any manifest.

Show screenshot
Grants tab showing the new Run As User grant

Once granted, the grantee sets runAsUser to the application user's ID in their manifest:

spec:
  runAsUser: dpdeveloper

The resource runs under the application user's identity and inherits its permissions, without any user needing individual grants.

How to revoke RunAsUser from a user?

To revoke a previously granted Run As User permission, the Operator follows these steps:

1

Open existing grant

Go to the application user's Grants tab on Bifrost and click on the run-as-user entry.

Show screenshot
Grants tab showing the run-as-user entry
2

Remove subject

In the grant detail, click the delete icon next to the subject tag.

3

Confirm deletion

Confirm the deletion by clicking OK.

Show screenshot
Confirmation dialog for removing the subject

The grant is removed and the grantee no longer appears in the application user's Grants list.

Show screenshot
Grants list after the subject is removed

After revocation, any resource that uses runAsUser with that user's ID will fail at runtime.

Last updated

Was this helpful?