Reset User Password
post
/rest/v7/companies/{companyName}/users/{userName}/actions/resetPassword
This operation creates a temporary password and sends it to the user's email.
Request
Supported Media Types
- application/json
Path Parameters
-
companyName: string
Company name of the user. For Host Company users, use _host. For Partner Organization users, use partner organization company name.
-
userName: string
Login Id of the user
Root Schema : user-resetPasswordRequest
Type:
Show Source
object
-
password(optional):
string
Title:
Password
Password is required only for Services, Developer, and Guest Company users. Password is not required in the Request Body for all other users, such as Host Company or Partner Organization users.
Response
Supported Media Types
- application/json
Default Response
No content. This task does not return elements in the response body.
Examples
The following example shows how to create a temporary password and sends it to the user???s email by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v7/companies/{companyname}/users/AAP39{userName}/actions/resetPassword
Request Body Sample
{ "password": "someString" }