<@ULVA73B9P> How can I add access for a user to be...
# ask-marvin
t
@Marvin How can I add access for a user to be able to run a flow run for only a single specific flow run and nothing else?
m
To grant a user access to run only a specific flow run in Prefect 3.x, you would typically need to manage user roles and permissions at the workspace level. However, Prefect's permissions model is not granular enough to restrict permissions to a single flow run. Instead, you can assign roles that control access to flows and deployments more broadly within a workspace. Here are the relevant permissions you can assign: 1. View Flows and Flow Runs: Allows the user to see flows and flow runs within a workspace. 2. Run Deployments: Allows the user to run deployments within a workspace, but does not inherently give permission to execute the flow associated with the deployment. For more detailed management, you might need to use service accounts or API keys with specific permissions, but this would still apply to the broader scope of deployments or flows, not individual flow runs. For more information, you can refer to the Prefect Cloud User and Role Management documentation. If you need more specific control, you may need to consider implementing custom logic within your flow to handle user-specific logic or using external systems to manage access control.