Enable an Account
post
/access-governance/identities/20250331/identities/{identityId}/accounts/{accountId}/action/enable
Enables an Account by identifier.
Request
Path Parameters
-
accountId(required): string
Unique Account id.
-
identityId(required): string
Unique Identity id.
Query Parameters
-
orchestratedSystemId: string
Minimum Length:
1
Maximum Length:255
A filter to return only resources that match given orchestrated system identifier.
Header Parameters
-
opc-request-id: string
The client request ID for tracing. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Response
Supported Media Types
- application/json
200 Response
Enables the Account for the given Account Id.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : AccountData
Type:
object
Information about the user account.
Show Source
-
attributes(required):
array attributes
Account attributes.
Nested Schema : attributes
Type:
array
Account attributes.
Show Source
-
Array of:
object Attribute
Attribute of the account.
Nested Schema : Attribute
Type:
object
Attribute of the account.
Show Source
-
action:
string
Allowed Values:
[ "ADD", "UPDATE" ]
Operation to be done on the attribute. -
additionalAttributes:
array additionalAttributes
Additional attributes.
-
attributes:
array attributes
Attributes.
-
displayName:
string
Display Name of the attribute.
-
name(required):
string
Name of the attribute.
-
value:
array value
Value of the attribute.
Nested Schema : additionalAttributes
Type:
array
Additional attributes.
Show Source
-
Array of:
object AdditionalAttribute
Additional Attribute.
Nested Schema : attributes
Type:
array
Attributes.
Show Source
-
Array of:
object Attribute
Attribute of the account.
Nested Schema : AdditionalAttribute
Type:
object
Additional Attribute.
Show Source
-
name(required):
string
Name of the attribute.
-
value(required):
array value
Value of the attribute.
400 Response
Bad Request
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
401 Response
Unauthorized
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
404 Response
Not Found
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
409 Response
Conflict
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
429 Response
Too Many Requests
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
500 Response
Internal Server Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
Default Response
Unknown Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
Examples
The following example shows how you can enable a disabled account. orchestratedSystemId
is the required query parameter.
cURL Example POST
curl -i -X POST \
-H "Authorization:Bearer <your-access-token>" \
-H "Content-Type:application/json" \
'<${service-instance-url}/access-governance/identities/20250331/identities/${identityId}/accounts/${accountId}/action/enable?targetId=${orchestratedSystemId}>'
Submit the POST request
Use the orchestratedSystemId
in the query parameter.
${service-instance-url}/access-governance/identities/20250331/identities/${identityId}/accounts/${accountId}/action/enable?targetId=${orchestratedSystemId}>
Example of the Response Code
You'll receive a 200 OK Response code with the following Response body:
{
"targetIdentityId": "targetId.account.ICF.xxx68424-59xx-45cd-bxxx-10fcaxxx82946.dcf62aba2cabxxx7e5d7421afx7daf7e0bae",
"globalIdentityId": "globalId.8d51xxbf-ab68-4fxx-ae89-xbccxx9de5be.147xxx.a84xxx862e09xxba29e9002afd63a7fb",
"orchestratedSystemId": "307xxxx4-598c-4xxx-be94-10xxxxx2946"
}