AppsScriptPulse

Using Google Apps Script to get Google Workspace user profile pictures without using the Admin APIs

Image credit: Google

Chances are that you may need to display user’s picture profiles in your applications. However, this API is part of the Directory API, which is part of Google Workspace Admin area. And chances are that your Organization has simply not giving you the rights to use Admin APIs

Sometimes within your Google Workspace domain you’d like to include account profile images. A number of Google Workspace APIs, like the Drive API, will include profile pictures in the response object. When this isn’t the case this post by Turhan Oz is a nice reminder that the dedicated People API can be used to get profile images. Click through to the source post to read more and sample code.

Source: AppScript — get user profile picture without using Admin APIs

1 comment for “Using Google Apps Script to get Google Workspace user profile pictures without using the Admin APIs

  1. Tom A Smith
    19 October, 2022 at 07:4025

    Don’t share medium “members only” content please.

Leave a Reply

Your email address will not be published. Required fields are marked *