Jump to content

Recommended Posts

Posted

Hi Team,

I am trying to create an API Key with Rule "apps/com.hornbill.servicemanager/Asset:getAssetsFiltered" and it gives me the below error.
I am having Admin Role and Asset management User role mapped.
image.png.1f3a398c6bf42da05005d91970c6a6d0.png 

Kindly advise what permission I am missing.

Thanks & regards,
Archana Jose

  • 3 months later...
Posted

Hi Team,
I was trying to create an API key for Asset Import in Hornbill and received the above mentioned error again.
Could you please confirm which roles are required for me to create API key for user in Hornbill. 
Is this having any dependency with the rules we are adding to the API key?

Thank you!

Posted

The error is absolutely literal in this case.

The User creating the Key has to have any right that they are trying to assign to the Key. Otherwise a User could simply create a key to bypass they rights that they have.

Posted

Hi Steve,
Thank you for your reply.
The API key we are trying to create is having the below rules.
 

admin:getApplicationList

admin:getGroupList2

admin:keysafeGetKey

data:entityAddRecord

data:entityBrowseRecords2

data:entityDeleteRecord

data:entityUpdateRecord

data:queryExec

session:getApplicationList

system:logMessage

apps/com.hornbill.core:getSitesList

apps/com.hornbill.suppliermanager/SupplierAssets:addSupplierAsset

apps/com.hornbill.suppliermanager/SupplierContractAssets:addSupplierContractAsset

apps/com.hornbill.servicemanager:shrGetCustomerDetails

And the person trying to create API key got the below roles assigned. Are there any other roles needs to be added to perform this action.
image.png.5d0b6205d0e54e55050d5fb6925ec140.png

Posted

Hi Steve,
Good morning!
I have tried adding myself Supplier Administrator role and tried creating API key for AssetImport user. It still gives the same error message. Are there something I am missing still? Thank you.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...