Grist Octri Preview
GET/docs/{docId}/usersForViewAs

Get users for 'View As' feature

Get users that can be used with the "View As" feature for testing access rules. Only document owners can call this endpoint.

Users are drawn from:

  • Users the document is shared with
  • Users mentioned in user attribute tables
  • Predefined example users

1 parameter
docIdstringrequired
A string id (UUID)

1 status code
200Users available for View As
attributeTableUsersarray<object>optional
Users found in user attribute tables
exampleUsersarray<object>optional
Predefined example users
usersarray<object>optional
Users the document is shared with