Hi Mohan,
It seems the hasAnyGlobalRole
method was introduced with a later version, as it is not documented for 1016: UserService | Cumulocity Web SDK
Maybe you want to include the version you are using in your initial post the next time.
you can create an application of type “MICROSERVICE” using this endpoint: Cumulocity IoT - OpenAPI Specification
A sample body for this request could look like this:
{
"contextPath": "myapplication",
"key": "my-application-key",
"name": "my-application",
"type": "MICROSERVICE",
"description": "Dummy microservice to provide custom permissions.",
"roles": [
"ROLE_CUSTOMAPP_READ",
"ROLE_CUSTOMAPP_ADMIN",
"ROLE_CUSTOMAPP_CREATE",
"ROLE_CUSTOMAPP_UPDATE"
]
}