API/SDK: User permissions required for getDeviceApiKeysByDevice

Hi openBalena enthusiasts!

I’m wondering what user permissions are required to use the API/SDK function to get device API keys (docs linked below).

Even with granting all permissions to the API user, I only get 401 errors when trying to fetch keys for a dedicated device. When requesting all keys with no device-filter set, I get API keys of the authenticated user back but no device related keys.

I tried to figure out from the API code, but couldn’t find the point where it gets filtered.

Can anyone please help? Thanks in advance!

API docs:

SDK docs: