Archana Posted June 7, 2024 Posted June 7, 2024 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. Kindly advise what permission I am missing. Thanks & regards, Archana Jose
Archana Posted June 12, 2024 Author Posted June 12, 2024 Hello, could anyone provide their thoughts on this, please?
Archana Posted October 2, 2024 Author Posted October 2, 2024 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!
Steve Giller Posted October 2, 2024 Posted October 2, 2024 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.
Archana Posted October 2, 2024 Author Posted October 2, 2024 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.
Steve Giller Posted October 2, 2024 Posted October 2, 2024 The rights that instantly stand out are the Supplier Manager ones, where the User does not appear to have any Supplier Manager roles at all.
Archana Posted October 3, 2024 Author Posted October 3, 2024 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now