Hi, I have a few questions.
-
I had created a custom option for tenant for a microservice and I am focusing on refactoring to SDK. The custom made API was “/tenant/options/formuladetails”. So how to retrieve the data of that option in sdk?
-
I have set the roles for the required functionalities as mentioned below. But while accessing the roles, we are getting a response as “Access denied.”
Kindly advise on how to resolve the issue.
@Vamsi_Baggu you should add the below roles in the “requiredRoles” in menifest files and rebuild the microservice and redeploy again, it should work.
“ROLE_OPTION_MANAGEMENT_READ”,
“ROLE_OPTION_MANAGEMENT_ADMIN”
Hi,
also consider the microservice manifest “sessionsCategory
” setting:
http://cumulocity.com/guides/microservice-sdk/concept/#settings
This would allow the “MicroserviceSettingsService” to access the tenant options, without the need of the “OPTION_MANAGEMENT” roles.