Closed PiercarloSlavazza closed 5 years ago
I am getting HTTP error code 400 when I try to add a "write" permission for a group to a folder with the following code (I haven't found any example in the docs):
Identity identity = new Identity(); identity.id = "id_of_the_group"; identity.displayName = "name_of_the_group"; IdentitySet identitySet = new IdentitySet(); identitySet.user = identity; Permission permission = new Permission(); permission.grantedTo = identitySet; permission.roles = Arrays.asList("write"); graphServiceClient.users("user_which_owns_the_folder").drive().items("folder_id").permissions().buildRequest().post(permission);
Please note that with similar code I am able to retrieve existing permiossions, list childrens of a folder etc.
Is it a bug, or the code is somehow wrong?
Sorry, wrong place where to file the issue.
I am getting HTTP error code 400 when I try to add a "write" permission for a group to a folder with the following code (I haven't found any example in the docs):
Please note that with similar code I am able to retrieve existing permiossions, list childrens of a folder etc.
Is it a bug, or the code is somehow wrong?