Azure / Azure/azure-libraries-for-java
Exception when calling graph-rbac API
- Dominant language
- Java
- Stars
- 97
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
I use below code get user's group by his object id.
```
UserGetMemberGroupsParametersInner parametersInner = new UserGetMemberGroupsParametersInner()
.withAdditionalProperties(Collections.emptyMap())
.withSecurityEnabledOnly(false);
List groups = azure.activeDirectoryUsers().inner().getMemberGroups(oid, parametersInner);
```
But it throws errors like:
```
com.microsoft.azure.management.graphrbac.GraphErrorException: Status code 400, {"odata.error":
{"code":"Request_BadRequest","message":{"lang":"en","value":"The parameter 'additionalProperties' in
the request payload is not a valid parameter for the function import
'getMemberGroups'."},"requestId":"...","date":"2018-09-18T04:15:00"}}
```
It seems its additionalProperties cannot be empty. But I have no idea where to get the definition for the parameters. I only find Azure Rest API with 1.6 version and it is outdated which does not have this parameters. How to set this parameter?
Contributor guide
Assessment
This issue has not been assessed yet.