Users
GET
/admin/v1/usersLists users.
POST
/admin/v1/usersCreates a new user.
GET
/admin/v1/users/{userId}Retrieves specified user.
PATCH
/admin/v1/users/{userId}Updates specified user.
DELETE
/admin/v1/users/{userId}Marks specified user for deletion.
POST
/admin/v1/users/{userId}:undeleteUn-marks specified user for deletion.
POST
/admin/v1/users/{userId}:purgeHard delete the specified user. The user must be marked for deletion before it can be purged.
POST
/admin/v1/users/{userId}:connectConnect specified user to external account.
POST
/admin/v1/users/{userId}:disconnectDisconnect specified user from external account. This will delete all the data associated with the connected account, including payment methods, invoices, and subscriptions. If the delete external account option is enabled it will also attempt to delete the external account (e.g. Stripe Customer object). WARNING: This can irreversibly destroy data and should be used with extreme caution.
POST
/admin/v1/users/{userId}:importImport user from external identity provider if they don't already exist. If the user already exists in UserHub, this is a no-op.
POST
/admin/v1/users/{userId}:createApiSessionCreate a User API session.
POST
/admin/v1/users/{userId}:createPortalSessionCreate Portal session.