Skip to content

Update the SaaS app account password

Request

OPA roles:
  • end_user
  • workload_end_user

Updates the password belonging to a SaaS app account (managed and unmanaged) that the end user has access to

Security
bearerAuth
Path
team_namestringrequired

The name of your team

saas_app_instance_idstringrequired

The app instance ID of a SaaS app provisioned to an Okta org

saas_app_account_idstringrequired

The UUID of a SaaS app account

Bodyapplication/jsonrequired
password_jwestringrequired
user_access_methodobject(UserAccessMethodWithRuleIds)required

User access method with required rule IDs. Used for non-server resource credential operations such as reveal, rotate, and update.

curl -i -X PUT \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/saas_apps/{saas_app_instance_id}/accounts/{saas_app_account_id}/credentials' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "password_jwe": "string",
    "user_access_method": {
      "access_credential": "",
      "availability_details_text": "string",
      "brokered": true,
      "checkout_requirements": {
        "max_checkout_duration_in_seconds": 0,
        "required": true
      },
      "conditionals": [
        {
          "access_request_type_id": "string",
          "access_request_type_name": "string",
          "acr_values": "phr",
          "condition_is_met": true,
          "description": "string",
          "expires_after_seconds": 0,
          "type": "access_request"
        }
      ],
      "current_user_checkout_expires_at": "2019-08-24T14:15:22Z",
      "details": {
        "path": [
          {}
        ],
        "privileges": {
          "_type": "SecurityPolicyPasswordCheckoutRDPPrivilege",
          "admin_level_permissions": true,
          "password_checkout_rdp": true,
          "remote_access_permissions": true,
          "folder_create": true,
          "folder_delete": true,
          "folder_update": true,
          "list": true,
          "secret_create": true,
          "secret_delete": true,
          "secret_reveal": true,
          "secret_update": true
        },
        "secret_id": "string",
        "secret_name": "string",
        "_type": "secret"
      },
      "identity": "string",
      "resource_status": "available",
      "rule_ids": [
        "string"
      ],
      "server_host_name": "string",
      "server_id": "string",
      "sudo_command_bundles": [
        {
          "ent_type": "string",
          "sudo_add_env": [
            "string"
          ],
          "sudo_commands": [
            "string"
          ],
          "sudo_group_name": "string",
          "sudo_id": "string",
          "sudo_login_username": "string",
          "sudo_name": "string",
          "sudo_noexec": true,
          "sudo_nopasswd": true,
          "sudo_runas": "string",
          "sudo_setenv": true,
          "sudo_sub_env": [
            "string"
          ]
        }
      ],
      "user_access_type": "string"
    }
  }'

Responses

No Content

Response
No content