Start a new topic

Credentials used to authenticate are not authorized to run this operation

When I try to do:

AsyncLinkedData collection = mKinveyClient.linkedData("collection", SomeLinkedGenericJsonClass.class);

collection.getEntity("some_valid_id", new KinveyClientCallback() { ...});

I get the following error:

The credentials used to authenticate this request are not authorized to run this operation. Please retry your request with appropriate credentials.

However just before this error I get:

Kinvey - LR, linked resource instance found

Kinvey - LR, linked resource found, file count at: 1

Kinvey - LR, getting a LinkedGenericJson: logo

Note: "logo" is the column name used to reference to the file. I can get this entity without errors if I use AsyncAppData instead of AsyncLinkedData. But my model class extends LinkedGenericJson as stated in the guides. I need to download the file associated with this entity. The datastore indicates that the entity correctly referenced to the file.

What am I doing wrong?

I can post any other info that is needed to troubleshoot. Any help is much appreciated, thanks.

Never mind, I needed to set access control to all users when uploading. I can do this by setting the metadata when saving a file, but how do I do it when saving an entity? I can't find any documentation on saving file metadata when uploading an entity.
Hi Janaka,

This should help:

It sounds like your collection-level permissions weren't set to what you needed. Let me know if that helps.
Login or Signup to post a comment