microsoft-graph-devx-api icon indicating copy to clipboard operation
microsoft-graph-devx-api copied to clipboard

Example with Owners and Members doesn't work

Open bytor99999 opened this issue 3 years ago • 3 comments

[Enter feedback here] I copied the Java code example and replaced the user ids for members and owners to actual ids from our Teams/Sharepoint users, and when I run the code I get the following errors.

Error message: Invalid URL format specified in @odata.bind for owners

Here is that code.

group.additionalDataManager().put("[email protected]", new JsonPrimitive("[ "https://graph.microsoft.com/v1.0/users/67d8f288-314f-443f-9208-ecc9f7ab12c6"]"));

Since the only change I did from the sample code to this like is the UUID of the user id, which is a valid user id (me), it should have worked flawlessly. I am suggesting the documentation has the sample incorrect, not that the SDK code has an error. I was able to add the group without adding owners.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

bytor99999 avatar May 18 '22 13:05 bytor99999

This issue has been assigned to you, @psaffaie. You are listed as the author for the document associated with this issue. If this is not correct, please take the following actions.

  • Assign this issue to the correct author
  • Create a pull request to update the author field in the YAML front-matter of this topic

github-actions[bot] avatar May 18 '22 13:05 github-actions[bot]

Thank you @bytor99999 for raising this issue.

Hi @andrueastman - Kindly assist to resolve this. Thanks.

FaithOmbongi avatar May 18 '22 18:05 FaithOmbongi

Transferring to microsoft-graph-devx-api repository.

jasonjoh avatar May 19 '22 13:05 jasonjoh