Add User Image
This activity shows you how to update the user image for an existing user.
The following operations are supported by the PingOne APIs:
-
Create a user
-
Create an image
-
Update the user profile
Prerequisites
-
Get an access token from the worker application that you created in Create an admin Worker app connection. To get a token from a different worker application in an alternate sandbox environment, run the token request endpoint using the client ID and client secret of your chosen worker app to authenticate the request. For more information, refer to Get a PingOne admin access token.
-
Run Read all populations to find a population ID value. You will use this value to create a user in step 1.
-
Download an image file (maximum size 2 MB) to your machine. You will attach this image to the request in step 2.
Workflow order of operations
To upload and assign a user image, complete the following tasks:
-
Make a
POSTrequest to/environments/{{envID}}/usersto create a user. -
Make a
POSTrequest to/environments/{{envID}}/imagesto upload an image to your PingOne environment. -
Make a
PATCHrequest to/environments/{{envID}}/users/{{userID}}to assign the image to a user profile.
|
You can add an image to an existing user by making a |
Click the Run in Postman button below to fork, or download and import, the Postman collection for this workflow to your workspace.