How you can retrieve the data of a custom tenant option in sdk

Hi, I have a few questions.

  1. 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?

  2. 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”



Vachaspati Diwevedi

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.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.