cURL
curl --request GET \ --url https://api.us.lexful.app/v1/entities/{entityTypeName}/{entityId}/access_grants \ --header 'Authorization: Bearer <token>' \ --header 'X-Account-ID: <api-key>'
{ "items": [ { "id": "019983a9-c4c0-73af-aec9-463feeadc2e7", "subject_type": "user", "subject_name": "John Doe", "granted_by": "019983a9-c4c2-8bcd-ef12-34567890abcd", "granted_at": "2024-01-15T10:30:00.000Z" }, { "id": "019983a9-c4c1-7abc-def0-123456789abc", "subject_type": "group", "subject_name": "Engineering Team", "granted_by": "019983a9-c4c2-8bcd-ef12-34567890abcd", "granted_at": "2024-01-15T10:30:00.000Z" } ], "total": 2 }
Get all users and groups with read access to an entity
Bearer token
Account ID
Entity type name
Entity ID
Comma-separated list of fields to expand (e.g., "subject_name")
Default Response
Array of access grants (users and groups)
Show child attributes
Total number of access grants
Was this page helpful?