メンバーシップの詳細を返します。例については、ユーザーまたは Google Chat アプリのメンバーシップの詳細を取得するをご覧ください。
次のタイプの認証をサポートしています。
認可スコープを使用したアプリ認証:
https://www.googleapis.com/auth/chat.bot
次のいずれかの認可スコープを使用したユーザー認証:
https://www.googleapis.com/auth/chat.memberships.readonly
https://www.googleapis.com/auth/chat.memberships
- ユーザー認証では、管理者アカウントが認証され、
useAdminAccess
がtrue
で、次のいずれかの承認スコープが使用されている場合に、管理者権限が付与されます。https://www.googleapis.com/auth/chat.admin.memberships.readonly
https://www.googleapis.com/auth/chat.admin.memberships
HTTP リクエスト
GET https://chat.googleapis.com/v1/{name=spaces/*/members/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ | |
---|---|
name |
必須。取得するメンバーシップのリソース名。 ユーザー認証を使用してアプリ独自のメンバーシップを取得するには、必要に応じて 形式: ユーザーのメールアドレスを |
クエリ パラメータ
パラメータ | |
---|---|
useAdminAccess |
省略可。 呼び出し元のユーザーは、Chat とスペースの会話の管理権限を持つ Google Workspace 管理者である必要があります。
管理者権限を使用している場合、スペースでアプリのメンバーシップを取得することはできません。 |
リクエストの本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には Membership
のインスタンスが含まれます。
認可スコープ
以下のいずれかの OAuth スコープが必要です。
https://www.googleapis.com/auth/chat.admin.memberships
https://www.googleapis.com/auth/chat.admin.memberships.readonly
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.readonly
詳しくは、認可ガイドをご覧ください。