Need help? Get answers from the docs with Omni's in-app AI! Log in to your Omni instance and open the Omni Agent in the sidebar.
curl --request GET \
--url https://{instance}.omniapp.co/api/v1/documents/{documentId}/access-list \
--header 'Authorization: Bearer <token>'{
"principals": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Jane Smith",
"email": "jane@example.com",
"type": "user",
"role": "EDITOR",
"accessBoost": false,
"accessSource": "direct",
"isOwner": false
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"name": "John Doe",
"email": "john@example.com",
"type": "user",
"role": "VIEWER",
"accessBoost": false,
"accessSource": "folder",
"isOwner": false,
"folderInfo": {
"id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"name": "Marketing Reports",
"path": "/Shared/Marketing Reports"
}
},
{
"id": "d4e5f6a7-b8c9-0123-def0-456789012345",
"name": "Data Analysts",
"type": "userGroup",
"role": "VIEWER",
"accessBoost": false,
"accessSource": "direct"
}
],
"pageInfo": {
"hasNextPage": true,
"nextCursor": "eyJuYW1lIjoiSm9obiIsImlkIjoiMTIzIn0=",
"pageSize": 20,
"totalRecords": 47
}
}Returns all users and groups with access to a document in a single paginated call.
The response includes a list of principal objects, where each entry represents a distinct access grant with its own role and settings. A principal may appear twice in the response if they have both direct access and folder-based access to the same document.
curl --request GET \
--url https://{instance}.omniapp.co/api/v1/documents/{documentId}/access-list \
--header 'Authorization: Bearer <token>'{
"principals": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Jane Smith",
"email": "jane@example.com",
"type": "user",
"role": "EDITOR",
"accessBoost": false,
"accessSource": "direct",
"isOwner": false
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"name": "John Doe",
"email": "john@example.com",
"type": "user",
"role": "VIEWER",
"accessBoost": false,
"accessSource": "folder",
"isOwner": false,
"folderInfo": {
"id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"name": "Marketing Reports",
"path": "/Shared/Marketing Reports"
}
},
{
"id": "d4e5f6a7-b8c9-0123-def0-456789012345",
"name": "Data Analysts",
"type": "userGroup",
"role": "VIEWER",
"accessBoost": false,
"accessSource": "direct"
}
],
"pageInfo": {
"hasNextPage": true,
"nextCursor": "eyJuYW1lIjoiSm9obiIsImlkIjoiMTIzIn0=",
"pageSize": 20,
"totalRecords": 47
}
}Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
The document identifier. To retrieve the ID, navigate to File > Document settings in the document and then click Settings. The Identifier field contains the document ID.
Number of results per page (1-100).
1 <= x <= 100Pagination cursor from a previous response's pageInfo.nextCursor.
Field to sort results by.
name, email, role Sort order.
asc, desc Filter by how access was granted:
direct — Only principals with explicit document permissionsfolder — Only principals with inherited folder permissionsdirect, folder Filter by principal type:
user — Only individual usersuserGroup — Only user groupsuser, userGroup Was this page helpful?