G suite custom fields provide by Google openID client userinfo endpoint

Viewed 166

I would like to ask if it is posible to include in an /userinfo google openId client call, some G suite users custom fields.

The idea is to create a custom schema (https://github.com/jay0lee/GAM/wiki/Custom-Schemas) for users and add some fields. The standard google userinfo call with scopes email, openid and profile gives this fields: "sub" "name" "given_name" "family_name" "picture" "email" "email_verified" "locale" "hd"

If I add a custom schema for users, are those custom fields in relation with the "profile" scope?, do I have to add a new scope?

1 Answers

I ended up calling the google directory api asking for the fields that I needed from the user.

Related