addScopeRoleAssignmentsForSharing mutation grants access to a specific resource (like a Dashboard) by assigning roles to users. This allows you to share Dashboards with individual team members or groups.
Signature
Arguments
ID!
required
The unique identifier of the resource you want to share (e.g., a Dashboard ID).
[ScopeRoleAssignmentInput!]!
required
Array of user-role assignments defining who gets access and what level of access they receive. See ScopeRoleAssignmentInput for the input structure.
ScopeType!
required
The type of resource being shared. For Dashboards, this should be
DASHBOARD.String
Optional personal message to include in the sharing notification email sent to recipients.
Response
Returns aResponseStatus object indicating the success or failure of the operation:
Usage example
The following example shows how to share a Dashboard with a colleague:Next steps
Remove Scope Role Assignments for Sharing
Remove sharing access from users
Create Dashboard
Create a new Dashboard to share
Dashboard Object
Dashboard object schema and properties

