Skip to main content
You're reading Identity & Access Management 7.2.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

User Functionality management API

Download OpenAPI (YAML)Version 1.0.0

Base URL: https://localhost:9443/t/carbon.super/api/users/v1

The User Functionality Management API (version 1.0.0).

Download the OpenAPI definition (YAML)

Security schemes​

BasicAuth: HTTP basic

OAuth2: oauth2

authorizationCode flow, token URL http://localhost:9763/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize

user functionality management​

This REST API handles user functionality management. A functionality can be locked or unlocked for particular users via this API.

Get the lock status of a functionality for an authenticated user​

GET /me/user-functionality/{function-id}

Get the status of a functionality for the authenticated user.

Scope(Permission) required: internal_login

Parameters

NameInTypeRequiredDescription
function-idpathstringYes

FunctionalityIdentifier.

Responses

CodeDescriptionSchema
200

Successful Response

LockStatusResponse
400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Lock or unlock a function for authenticated user​

PUT /me/user-functionality/{function-id}

This API is used to lock or unlock a function for the authenticated user.

Scope(Permission) required: internal_login

Parameters

NameInTypeRequiredDescription
function-idpathstringYes

FunctionalityIdentifier.

Request body: application/json

Schema: UserStatusChangeRequest

2 properties
NameTypeRequiredDescription
actionstringYes

LOCK/UNLOCK

Allowed values: LOCK, UNLOCK

timeToLockstring

Time in millisecond

Responses

CodeDescriptionSchema
200

The function is successfully locked.

400

Bad Request

Error
401

Unauthorized

403

Forbidden

500

Server Error

Error

Get the lock status of a functionality for a user​

GET /{user-id}/user-functionality/{function-id}

Get the status of a functionality for a particular user.

Scope(Permission) required: internal_user_fucntionality_view

Parameters

NameInTypeRequiredDescription
function-idpathstringYes

FunctionalityIdentifier.

user-idpathstringYes

UserID.

Responses

CodeDescriptionSchema
200

Successful Response

LockStatusResponse
400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Lock or unlock a function for a user​

PUT /{user-id}/user-functionality/{function-id}

This API is used to lock or unlock a function for a particular user.

Scope(Permission) required: internal_user_fucntionality_create

Parameters

NameInTypeRequiredDescription
function-idpathstringYes

FunctionalityIdentifier.

user-idpathstringYes

UserID.

Request body: application/json

Schema: StatusChangeRequest

4 properties
NameTypeRequiredDescription
actionstringYes

LOCK/UNLOCK

Allowed values: LOCK, UNLOCK

timeToLockstring

Time in millisecond

functionalityLockReasonstring
functionalityLockReasonCodestring

Responses

CodeDescriptionSchema
200

The function is successfully locked.

400

Bad Request

Error
401

Unauthorized

403

Forbidden

500

Server Error

Error

Schemas​

StatusChangeRequest​

Type: object

4 properties
NameTypeRequiredDescription
actionstringYes

LOCK/UNLOCK

Allowed values: LOCK, UNLOCK

timeToLockstring

Time in millisecond

functionalityLockReasonstring
functionalityLockReasonCodestring

LockStatusResponse​

Type: object

4 properties
NameTypeRequiredDescription
lockStatusboolean

returns true if it is locked

unlockTimestring
lockReasonCodestring
lockReasonstring

UserStatusChangeRequest​

Type: object

2 properties
NameTypeRequiredDescription
actionstringYes

LOCK/UNLOCK

Allowed values: LOCK, UNLOCK

timeToLockstring

Time in millisecond

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes
messagestringYes
descriptionstring
traceIdstring

Was this page helpful?