This is an archive version of the document. To get the most up-to-date information, see the current version.

Getting Organization Group Members

You can get members of the group with the specified ID.

Request

GET https://<hostname>:4443/v5/Organizations/{organizationId}/Groups/{groupId}/Members

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

Specifies the identification number of the Office 365 organization. For more information on how to get this parameter, see Getting Organizations.

groupId

string

Specifies the identification number of the group. For more information on how to get this parameter, see Getting Organization Groups.

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

The response contains the following information:

Property

Type

Description

offset

integer

Shows the offset value.

limit

integer

Shows the limit of records to be displayed on the page.

groupId

string

An identification number of the group to which the account belongs.

name

string

The account name.

login

string

The login name.

type

string

The type of the user account.

isCloud

string

Specified that the account belongs to the Microsoft Online group, not on-premises.

_links

Dictionary of string [key] and Object [value]

Links to related resources (navigation property).

Examples

Example 1

Request:

GET https://abc.tech.local:4443/v5/Organizations/6f9b3da3-204d-4a4b-b466-55586e0233fc/Groups/6e570850-9ce9-40ed-b81d-41772dabcead00000000-0000-0000-0000-000000000000/Members

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK

 

Response Body:

{

  "offset": 0,

  "limit": 30,

  "results":    [

           {

        "groupId": "6e570850-9ce9-40ed-b81d-41772dabcead00000000-0000-0000-0000-000000000000",

        "name": "tworker3",

        "login": "tworker3@organization.onmicrosoft.com",

        "type": "User",

        "isCloud": true,

        "_links": {"organization": {"href": "https://abc.tech.local:4443/v5/organizations/6f9b3da3-204d-4a4b-b466-55586e0233fc"}}

     },

           {

        "groupId": "6e570850-9ce9-40ed-b81d-41772dabcead00000000-0000-0000-0000-000000000000",

        "name": "tworker2",

        "login": "tworker2@organization.onmicrosoft.com",

        "type": "User",

        "isCloud": true,

        "_links": {"organization": {"href": "https://abc.tech.local:4443/v5/organizations/6f9b3da3-204d-4a4b-b466-55586e0233fc"}}

     },

           {

        "groupId": "6e570850-9ce9-40ed-b81d-41772dabcead00000000-0000-0000-0000-000000000000",

        "name": "tworker4",

        "login": "tworker4@organization.onmicrosoft.com",

        "type": "User",

        "isCloud": true,

        "_links": {"organization": {"href": "https://abc.tech.local:4443/v5/organizations/6f9b3da3-204d-4a4b-b466-55586e0233fc"}}

     },

           {

        "groupId": "6e570850-9ce9-40ed-b81d-41772dabcead00000000-0000-0000-0000-000000000000",

        "name": "tworker1",

        "login": "tworker1@organization.onmicrosoft.com",

        "type": "User",

        "isCloud": true,

        "_links": {"organization": {"href": "https://abc.tech.local:4443/v5/organizations/6f9b3da3-204d-4a4b-b466-55586e0233fc"}}

     }

  ],

  "_links": {"self": {"href": "https://abc.tech.local:4443/v5/Organizations/6f9b3da3-204d-4a4b-b466-55586e0233fc/Groups/6e570850-9ce9-40ed-b81d-41772dabcead00000000-0000-0000-0000-000000000000/Members?offset=0&limit=30&setid=9352a3ac-95ee-4b58-9497-bcf74ea9c3fe"}}

}