Magidoc

transferDashboardOwnership
Mutation

Transfers ownership of a dashboard to another workspace member. Access: Dashboard creator or workspace admin. Previous owner remains on sharingWith for me/custom privacy. Errors:

  • "User is not logged in" if no user session.
  • "No access" if caller is not the creator or a workspace admin.
  • "Overview dashboards cannot transfer ownership" for overview dashboards.
  • "New owner must be different from the current owner" if newOwnerId matches createdBy.
  • "New owner is not a member of this workspace" if the target lacks workspace access.
  • "Dashboard not found" / access errors if the dashboard is missing or inaccessible.

Arguments

#

dashboardId

ID !
Non-null

Dashboard to transfer

newOwnerId

ID !
Non-null

Workspace member who will become the new owner

Response

#

Returns Dashboard !.

Example

#