Resource members
Last updated
Was this helpful?
Last updated
Was this helpful?
Endpoint to list resource members.
Args: resource: The resource for which to get the members. user: The authenticated user. rbac: RBAC component. db: DB session.
Returns: List of resource members.
Raises: ValueError: If the resource is missing an ID or workspace scope.
Resource member model.
Endpoint to add resource members.
Args: user_id: ID of the user to add as resource member. team_id: ID of the team to add as resource member. sharing_user_id: ID of the user that is sharing the resource. resource: The resource for which to get the members. actions: Actions that the user should be able to perform on the resource. auth_context: The authentication context. rbac: RBAC component. workspace_manager: Workspace manager. user_manager: User manager. db: DB session.
Raises: IllegalOperationError: If the user is not an internal user. ValueError: If the resource is missing an ID or workspace scope.
No content