https://authzed.com logo
#spicedb
Title
# spicedb
i

Igor.Shmukler

09/14/2022, 10:53 AM
hello, i am using
lookupSubjects
API to get a list of subjects with access to a particular resource. It is working, and I get the list. However, the list entries are in the format, where only object id value is immediately useful as:
Copy code
{
  subjectObjectId: '2',
  excludedSubjectIds: [],
  lookedUpAt: { token: 'GgQKAjMx' }
}
I understand that "expand" API might be available to get the types of permissions for each subject. Please point me to an example. Further, if possible, I would rather combine lookup with expand, instead of running an additional query for each subject. Suggestions?
3 Views