Files
developer.sailpoint.com/docs/api/nerm/v1/create-username-password-action.api.mdx
2024-03-06 16:17:34 -05:00

45 lines
12 KiB
Plaintext

---
id: create-username-password-action
sidebar_label: Create a username password action
hide_title: true
hide_table_of_contents: true
api: eJztWG1v2zYQ/isEPzu287Z2AQYsLTLAw9oEibt9yAzjLJ1sJhKpkVQcw/B/3x0pOX6L6xQB9mUpkEjk8fjc3XMv6lyaEi14ZXQvlRcysQgevzm0Ggq8AeemxqaXCQvIlkzRJVaV4e1Cfg7CAkRVy4uyPiCgOeFh7OTFvaTVxyw303rHyUFLWvynQuc/mXQmL+bhVVkkGN5W2JKJ0R615y0oy1wlAWbnwfHlc+mSCRbAT35WIsExowdMPN1ZWjbKK3S829w8rDEdfkClK8LOW6XHJJwZWwChklVFAq0t2Os+6k9QLG33qy8RjhhhbvTYCW/apAyfoShzvu/0NOt+OEnTo+PT0dnR2TEeH31E6B4d/5SdwPnPo/MPyUe52LhuG+330a2sCJPtwrgO7MaaovRBjuMuyB/8ouwLDUCnSyq0GSTYZKKecNWfI2NyhEiqDKqcPJpB7rYg9nZCEsqJRqkgANr4NZRB1YJu9soH1K9QehF+2E2uJFZGApx0u/xnHcfVc0lkodsaUYoYUf8JcsVrgcnyf9K+M2l3UuJHWHsbVQoKijUUNJERjYmohk5G5jKNQIytqUrWyEtOTJWf0Kqj2KtMJcISaQOjSxjju/male30s5uYKmd66RTtj7ka0nRY0xPtENzQTDXa/Ym4C2edh0tVDbYR+TRNKS/ABYGgvgkJ+TpTeUgVkovNJV2zg68ilJQUKh+CJx+OKv92z77Kk6VK4bxhNQFXuI5xUzK7poLtJ9Ch/q4tiapjbtZmgLUw24VaeSzcXns9PvutvAn2rVmCh9lyLx/MRKcGfx3z6XZiCtp+AI3rawO6UeN06Dz46gCABwWEFIqocIn1Lr5+noAefycKXLafsCV6Guqnay3+QOCnPtpCaWbYf9hyWtI9qrKEES+9481Lrfuurt3vhhS9ou5C74Og0Uy1sNZ9UNf9q1az0W3PdjXYT5CK21hdxJGodDCWCgfdR8o9tt/SXY3G64yYvt02G2g9HVr373x00Xpd7k+WCtdcWWusk4tBNOJ8lxE9wkdzRi7u0D5RHQxnyByLvrKaiaPJNCJ6mtMLPicYTro3Gbd/EkC+chvZpSioQnCjieujZS0M8qtJdmesnQlnCvQTlppyuKeWOn4dQbKe9wx/MZQmzD0l+Am9dTYGF9dphsJhMxA2O3TIBSe5EKfK5nR+4n3pLjqdOXkCtP9KBxdtTdEkaGaGyHWpA6Wiw09gFXMkFqaleLS8priEpMDEbH259IO4iMOqc2rMoWGuVdQlCmqPZOOA8SWVVX4WAI4QLNrLiu28H6xu33FkIo5VoWWg2Ci2NohxLgYhWokPvzVFtG8eURMM+v3LzFQ2Pkp2N5Pg9uVz6aqJ1c5JcW0WPKxxbTrozUP+asFdlgGlM8OAOMhR73G72+6uZNfXq9sv4vKmtx0hurnZFAnwyMlXhyhBknDbZgCFSVU2E8wFQy2EKhT5jXaF0iK4EPWTIuZyxWKQlFVIszuD0oEs8kuvHzzMPC5Ar+wc8nm7McguU/iwb+NID+6dnTIHxYUo5sG8zqf7zfBy1ryeUcTJCacjnZvPR+Dwm80XC14m5lim8eAlbwKL6QBCyvMgMfwRZ4w82nDUZ3QsnldhetksSVw044nLhMvYXtnBSsW4ub7rM/nrz34KIZ+xMOUBgn5fyL/pH72YWBvD/w3w+lzmNCFUVMNIJurln38BGNvb+g==
sidebar_class_name: "post api-method"
info_path: docs/api/nerm/v1/nerm-api
custom_edit_url: "https://github.com/sailpoint-oss/developer.sailpoint.com/issues/new?assignees=&labels=&template=bug-report.md&title=%5BBug%5D+Your+Bug+Report+Here Requesting changes to 'Create a username password action' (create-username-password-action)"
---
import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import TabItem from "@theme/TabItem";
<h1 className={"openapi__heading"}>Create a username password action</h1>
<MethodEndpoint method={"post"} path={"/workflow_actions/username_password_actions"}></MethodEndpoint>
Create a username password action
## Request
<MimeTabs className={"openapi-tabs__mime"}><TabItem label={"application/json"} value={"application/json-schema"}><details style={{}} className={"openapi-markdown__details mime"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-mime"}><h3 className={"openapi-markdown__details-summary-header-body"}>Body</h3><strong className={"openapi-schema__required"}>required</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}} className={"openapi-markdown__details"}><summary style={{}}><span className={"openapi-schema__container"}><strong className={"openapi-schema__property"}>workflow_action</strong><span className={"openapi-schema__name"}> object</span></span></summary><div style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"workflow_id"} required={false} schemaName={"uuid"} qualifierMessage={undefined} schema={{"type":"string","format":"uuid","required":true,"description":"The workflow the workflow action belongs to.","example":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8"}}></SchemaItem><SchemaItem collapsible={false} name={"description"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","required":true,"description":"The description of the workflow action.","example":"Prompt the user for their username and password."}}></SchemaItem><SchemaItem collapsible={false} name={"archived"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean","default":false,"description":"If the workflow action is archived or not.","example":false}}></SchemaItem></div></details></SchemaItem></ul></details></TabItem></MimeTabs><div><div><ApiTabs><TabItem label={"200"} value={"200"}><div>
Expected response to a valid request
</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}} className={"openapi-markdown__details"}><summary style={{}}><span className={"openapi-schema__container"}><strong className={"openapi-schema__property"}>workflow_action</strong><span className={"openapi-schema__name"}> object</span></span></summary><div style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"workflow_id"} required={false} schemaName={"uuid"} qualifierMessage={undefined} schema={{"type":"string","format":"uuid","required":true,"description":"The workflow the workflow action belongs to.","example":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8"}}></SchemaItem><SchemaItem collapsible={false} name={"description"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","required":false,"description":"The description of the workflow action.","example":"Require approval from another user or a group of users with a specific role."}}></SchemaItem><SchemaItem collapsible={false} name={"page_id"} required={false} schemaName={"uuid"} qualifierMessage={undefined} schema={{"type":"string","format":"uuid","required":true,"description":"The page the workflow action should render.","example":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8"}}></SchemaItem><SchemaItem collapsible={false} name={"add_requester_as_owner"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean","default":true,"description":"If the requester should be added as the owner of the profile to be created.","example":true}}></SchemaItem><SchemaItem collapsible={false} name={"email_attribute_id"} required={false} schemaName={"uuid"} qualifierMessage={undefined} schema={{"type":"string","format":"uuid","required":false,"description":"The attribute storing the email address for the workflow action.","example":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8"}}></SchemaItem><SchemaItem collapsible={false} name={"email_addresses"} required={false} schemaName={"text[]"} qualifierMessage={undefined} schema={{"type":"array","required":false,"items":{"type":"string","format":"text"},"description":"The email addresses for the workflow action.","example":["johndoe@gmail.com","janedoe@gmail.com"]}}></SchemaItem><SchemaItem collapsible={false} name={"new_status"} required={false} schemaName={"text"} qualifierMessage={undefined} schema={{"type":"string","format":"text","required":false,"description":"The new status for the Status Change workflow action.","example":"Active, Inactive, On Leave, Terminated"}}></SchemaItem><SchemaItem collapsible={false} name={"archived"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean","default":false,"description":"If the workflow action is archived or not.","example":false}}></SchemaItem><SchemaItem collapsible={false} name={"skippable"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean","default":false,"description":"If the workflow action is skippable or not.","example":false}}></SchemaItem><SchemaItem collapsible={false} name={"requires_comment"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean","default":false,"description":"If the workflow action requires a comment or not.","example":false}}></SchemaItem></div></details></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"workflow_action\": {\n \"workflow_id\": \"33f072dd-13b4-41e1-8ea0-16f2a59b57c8\",\n \"description\": \"Require approval from another user or a group of users with a specific role.\",\n \"page_id\": \"33f072dd-13b4-41e1-8ea0-16f2a59b57c8\",\n \"add_requester_as_owner\": true,\n \"email_attribute_id\": \"33f072dd-13b4-41e1-8ea0-16f2a59b57c8\",\n \"email_addresses\": [\n \"johndoe@gmail.com\",\n \"janedoe@gmail.com\"\n ],\n \"new_status\": \"Active, Inactive, On Leave, Terminated\",\n \"archived\": false,\n \"skippable\": false,\n \"requires_comment\": false\n }\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"400"} value={"400"}><div>
Bad Request - unable to complete.
</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><div><span className={"badge badge--info"}>oneOf</span><SchemaTabs><TabItem label={"InvalidJson"} value={"0-item-properties"}><SchemaItem collapsible={false} name={"error"} required={false} schemaName={""} qualifierMessage={undefined} schema={{"example":"Invalid JSON syntax. Please check your syntax and try again."}}></SchemaItem></TabItem><TabItem label={"ValidationErrors"} value={"1-item-properties"}><SchemaItem collapsible={false} name={"error"} required={false} schemaName={""} qualifierMessage={undefined} schema={{"example":"The <object> failed to create/update"}}></SchemaItem><SchemaItem collapsible={false} name={"errors"} required={false} schemaName={""} qualifierMessage={undefined} schema={{"example":{"attribute":"can't be blank"}}}></SchemaItem></TabItem></SchemaTabs></div></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"500"} value={"500"}><div>
Internal Server Error - returned on unhandled exceptions.
</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"error"} required={false} schemaName={""} qualifierMessage={undefined} schema={{"description":"A message describing the error","example":"Sorry something went wrong"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"error\": \"Sorry something went wrong\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem></ApiTabs></div></div>