Getting Organization Groups by Organization and Group ID
This section explains how to get a resource representation of an organization group with the specified ID.
Request
GET https://<hostname>:4443/v5/Organizations/{organizationId}/Groups/{groupId} |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be specified in the URL of the request.
Parameter | Type | Description |
---|---|---|
organizationId | string | An identification number of the organization. |
groupId | string | An identification number of the group. |
Request Body
None.
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
---|---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
In the response body, the server returns a resource representation of the /Organizations/{organizationId}/Groups/{groupId} resource.
Example
Request: GET https://abc.tech.local:4443/v5/Organizations/92460656-7a85-4a04-b1af-1ea903c0bc2e/Groups/16f8226c-9531-4ed2-9b87-856f7c76a42600000000-0000-0000-0000-000000000000
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: [ { "id": "16f8226c-9531-4ed2-9b87-856f7c76a42600000000-0000-0000-0000-000000000000", "displayName": "Site", "name": "Site@backup.onmicrosoft.com", "managedBy": "kate.rourke", "site": "https://backup.sharepoint.com/sites/Site", "type": "Office365", "locationType": "Cloud", "_links": { "self": { "href": "https://abc.tech.local:4443/v5/organizations/92460656-7a85-4a04-b1af-1ea903c0bc2e/groups/16f8226c-9531-4ed2-9b87-856f7c76a42600000000-0000-0000-0000-000000000000" }, "organization": { "href": "https://abc.tech.local:4443/v5/organizations/92460656-7a85-4a04-b1af-1ea903c0bc2e" } } } |