Skip to content

Google Groupに任意のメンバーが存在しているかを確認する #75

@sinmetal

Description

@sinmetal

Google Groupに任意のメンバーが存在するかを確認したい
メンバーはGoogle AccountやService Accountが考えられる。
また、Google Groupが入れ子になっている場合、展開したい。

手段

Directory API

admin.googleapis.com をenableにする

Cloud Identity Groups API

Cloud Identity Premium or Google Workspaceが必要。
一部の機能はGoogle Workspace Enterprise Standard、Enterprise Plus、Enterprise for Educationが必要っぽい?

https://cloud.google.com/identity/docs/reference/rest/v1/groups.memberships/checkTransitiveMembership がずばりやりたいことができるAPIだが、Service Accountから呼ぶとうまく動かないらしい。
Google Workspace内のGoogle Accountからなら、いけるんじゃないかと思ったが、一度も成功させることはできなかった。
なぜか400 Bad Requestが返ってくる。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions