API call get_resource_collections returns only same user created collections

14 views
Skip to first unread message

Trond Helge Rolland

unread,
Sep 11, 2025, 7:52:46 AM (12 days ago) Sep 11
to ResourceSpace
In short, the  get_resource_collections function in the API only returns collections if the user running the API call is the one who created the collection. As our featured collection structure is created from an API user, but the "end user" creates their own collections within the tree and uploads resources. 
This means that get_resource_collection returns a blank json if the API / script user is running the api call, while the same user as created the collection will get json data in reply with the information required (we need to verify the correct collection structure is used). 

According to https://www.resourcespace.com/knowledge-base/developers/functions/get_resource_collections it will filter if the $themes_in_my_collections is set to false (which it is by default, we don't use it). Setting it to true in our own config does not change the output so it makes no difference. 
Also, both the api user and this end user are both in the same rights group, there are no differences in access. Tested on latest 10.6 as well as 10.7_RC. 

Anybody with suggestions of what I'm doing wrong? 

Reply all
Reply to author
Forward
0 new messages