microsoft-graph-devx-api
microsoft-graph-devx-api copied to clipboard
Example with Owners and Members doesn't work
[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.
- ID: 0f8461db-2e9b-1a9a-e847-6ce3c6287710
- Version Independent ID: ffcc3cbb-6fd3-ee55-644a-1c6382bcd6e5
- Content: Create group - Microsoft Graph v1.0
- Content Source: api-reference/v1.0/api/group-post-groups.md
- Product: groups
- Technology: microsoft-graph
- GitHub Login: @psaffaie
- Microsoft Alias: MSGraphDocsVteam
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
authorfield in the YAML front-matter of this topic
Thank you @bytor99999 for raising this issue.
Hi @andrueastman - Kindly assist to resolve this. Thanks.
Transferring to microsoft-graph-devx-api repository.