Members: hasMember

Requires authorization

Checks whether the given user is a member of the group. Membership can be direct or nested. Try it now.

Request

HTTP request

GET https://www.googleapis.com/admin/directory/v1/groups/groupKey/hasMember/memberKey

Parameters

Parameter name Value Description
Path parameters
groupKey string Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
memberKey string Identifies the user member in the API request. The value can be the user's primary email address, alias, or unique ID.

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/admin.directory.group.member.readonly
https://www.googleapis.com/auth/admin.directory.group.member
https://www.googleapis.com/auth/admin.directory.group.readonly
https://www.googleapis.com/auth/admin.directory.group

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "isMember": boolean
}
Property name Value Description Notes
isMember boolean Identifies whether the given user is a member of the group. Membership can be direct or nested.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Enviar comentarios sobre…

¿Necesitas ayuda? Visita nuestra página de asistencia.