RunAsUser permissions
Run a resource under another user's identity without changing ownership or submitter identity.
What does it enable?
runAsUser permissions let you act on behalf of another user in DataOS. When you set it in a manifest, the resource is created and runs under that user's identity, not yours. Their permissions apply, not yours. You are the one who applied it, but it runs as them.
When you apply a resource, DataOS tracks three identities separately:
owner: who the resource belongs to
submitter: who ran the apply command
runAsUser: whose identity the resource executes under at runtime
These can all be different users. runAsUser only controls the runtime identity. It does not change who owns the resource or who submitted it.
This also means deletion depends on ownership, never on runAsUser. If you submit a resource with runAsUser set to someone else, you remain its owner and can delete it normally.
Once a grant is in place, add runAsUser to your manifest:
spec:
runAsUser: johndoeWhen to use it?
Use runAsUser when you need to perform an action in DataOS (creating a resource, editing it, managing its access, or any other operation), but you don't have the permissions required to do it yourself. A team member who has those permissions can grant you the ability to act on their behalf.
This also applies when working with application users. A person user can set runAsUser to an application user's ID so that a Data Product workload resource (such as Vulcan or Minerva) runs under that application user's identity. This is the common pattern for Data Product workload resources that need to operate under a shared application identity rather than a personal one.
To grant or revoke RunAsUser permission, see Grant permissions.
How to use it?
In DataOS, there are two types of users: person and application. runAsUser can be set to either type. Data Product workload resources (such as Nilus, Vulcan, and Minerva) are generally expected to run under an application identity rather than a personal one.
Either way, the permission must be explicitly granted; it is never implicit.
To create an application user, see Create an application user.
To grant permissions to a user and set up RunAsUser grants, see Grant permissions.
Last updated
Was this helpful?