Method: users.photos.update
Adds a photo for the user.
HTTP request
PUT https://admin.googleapis.com/admin/directory/v1/users/{userKey}/photos/thumbnail
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
userKey |
string
Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
|
Request body
The request body contains an instance of UserPhoto
.
Response body
If successful, the response body contains an instance of UserPhoto
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admin.directory.user
For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-22 UTC.
[null,null,["Last updated 2024-08-22 UTC."],[[["Adds a user photo using a PUT request to a specific endpoint."],["Requires a `userKey` to identify the user, which can be an email address or unique ID."],["Request and response bodies utilize the UserPhoto object for data transfer."],["Needs authorization with the `https://www.googleapis.com/auth/admin.directory.user` scope."]]],["This describes how to add a user's photo via a `PUT` HTTP request to `https://admin.googleapis.com/admin/directory/v1/users/{userKey}/photos/thumbnail`. The `userKey` parameter identifies the user by email or ID. The request and response bodies utilize the `UserPhoto` object. Authorization requires the `https://www.googleapis.com/auth/admin.directory.user` OAuth scope. The operation relies on [gRPC Transcoding](https://google.aip.dev/127) syntax.\n"]]