mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-10 20:37:49 +00:00
Automated commit by github action: 3942973180
This commit is contained in:
99
idn/beta/paths/identities.yaml
Normal file
99
idn/beta/paths/identities.yaml
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
get:
|
||||||
|
operationId: listIdentities
|
||||||
|
tags:
|
||||||
|
- Identities
|
||||||
|
summary: List Identities
|
||||||
|
description: >-
|
||||||
|
This API returns a list of identities.
|
||||||
|
parameters:
|
||||||
|
- in: query
|
||||||
|
name: filters
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: >-
|
||||||
|
Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters)
|
||||||
|
|
||||||
|
|
||||||
|
Filtering is supported for the following fields and operators:
|
||||||
|
|
||||||
|
|
||||||
|
**id**: *eq, in*
|
||||||
|
|
||||||
|
|
||||||
|
**name**: *eq, sw*
|
||||||
|
|
||||||
|
|
||||||
|
**alias**: *eq, sw*
|
||||||
|
|
||||||
|
|
||||||
|
**firstname**: *eq, sw*
|
||||||
|
|
||||||
|
|
||||||
|
**lastname**: *eq, sw*
|
||||||
|
|
||||||
|
|
||||||
|
**email**: *eq, sw*
|
||||||
|
|
||||||
|
|
||||||
|
**cloudStatus**: *eq*
|
||||||
|
|
||||||
|
|
||||||
|
**processingState**: *eq*
|
||||||
|
|
||||||
|
|
||||||
|
**correlated**: *eq*
|
||||||
|
|
||||||
|
|
||||||
|
**protected**: *eq*
|
||||||
|
example: id eq "6c9079b270a266a60170a2779fcb0006" or correlated eq false
|
||||||
|
- in: query
|
||||||
|
name: sorters
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: comma-separated
|
||||||
|
required: false
|
||||||
|
description: >-
|
||||||
|
Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters/#sorting-results)
|
||||||
|
|
||||||
|
|
||||||
|
Sorting is supported for the following fields: **name, alias, cloudStatus**
|
||||||
|
example: name,-cloudStatus
|
||||||
|
- in: query
|
||||||
|
name: defaultFilter
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
enum: [CORRELATED_ONLY, NONE]
|
||||||
|
default: CORRELATED_ONLY
|
||||||
|
required: false
|
||||||
|
description: >-
|
||||||
|
Adds additional filter to filters query parameter.
|
||||||
|
|
||||||
|
|
||||||
|
CORRELATED_ONLY adds correlated=true and returns only identities that are correlated.
|
||||||
|
|
||||||
|
|
||||||
|
NONE does not add any and returns all identities that satisfy filters query parameter.
|
||||||
|
example: NONE
|
||||||
|
- $ref: "../../v3/parameters/count.yaml"
|
||||||
|
- $ref: "../../v3/parameters/limit.yaml"
|
||||||
|
- $ref: "../../v3/parameters/offset.yaml"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: List of identities.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: "../../beta/schemas/Identity.yaml"
|
||||||
|
"400":
|
||||||
|
$ref: "../../v3/responses/400.yaml"
|
||||||
|
"401":
|
||||||
|
$ref: "../../v3/responses/401.yaml"
|
||||||
|
"403":
|
||||||
|
$ref: "../../v3/responses/403.yaml"
|
||||||
|
"429":
|
||||||
|
$ref: "../../v3/responses/429.yaml"
|
||||||
|
"500":
|
||||||
|
$ref: "../../v3/responses/500.yaml"
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
head:
|
head:
|
||||||
operationId: identityExistsById
|
operationId: identityExists
|
||||||
tags:
|
tags:
|
||||||
- Identities
|
- Identities
|
||||||
summary: Check if identity exists
|
summary: Check if identity exists
|
||||||
description: >-
|
description: >-
|
||||||
The API returns successful response if the requested identity exists and not found error if it doesn`t.
|
This API returns successful response if the requested identity exists and not found error if it doesn`t.
|
||||||
A token with ORG_ADMIN authority is required to call this API.
|
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: identityId
|
name: identityId
|
||||||
@@ -15,18 +14,58 @@ head:
|
|||||||
description: Identity Id
|
description: Identity Id
|
||||||
example: ef38f94347e94562b5bb8424a56397d8
|
example: ef38f94347e94562b5bb8424a56397d8
|
||||||
responses:
|
responses:
|
||||||
'204':
|
"204":
|
||||||
description: If an identity with the passed identityId exists.
|
description: If an identity with the passed identityId exists.
|
||||||
'401':
|
"400":
|
||||||
$ref: '../../v3/responses/401.yaml'
|
$ref: "../../v3/responses/400.yaml"
|
||||||
'403':
|
"401":
|
||||||
$ref: '../../v3/responses/403.yaml'
|
$ref: "../../v3/responses/401.yaml"
|
||||||
'404':
|
"403":
|
||||||
$ref: '../../v3/responses/404.yaml'
|
$ref: "../../v3/responses/403.yaml"
|
||||||
'429':
|
"404":
|
||||||
$ref: '../../v3/responses/429.yaml'
|
$ref: "../../v3/responses/404.yaml"
|
||||||
'500':
|
"429":
|
||||||
$ref: '../../v3/responses/500.yaml'
|
$ref: "../../v3/responses/429.yaml"
|
||||||
|
"500":
|
||||||
|
$ref: "../../v3/responses/500.yaml"
|
||||||
|
|
||||||
|
get:
|
||||||
|
operationId: getIdentity
|
||||||
|
tags:
|
||||||
|
- Identities
|
||||||
|
summary: Identity Details
|
||||||
|
description: >-
|
||||||
|
This API returns a single identity using the Identity ID.
|
||||||
|
security:
|
||||||
|
- bearerAuth:
|
||||||
|
- "idn:identity:read"
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: identityId
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: Identity Id
|
||||||
|
example: ef38f94347e94562b5bb8424a56397d8
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: An identity object
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "../schemas/Identity.yaml"
|
||||||
|
"400":
|
||||||
|
$ref: "../../v3/responses/400.yaml"
|
||||||
|
"401":
|
||||||
|
$ref: "../../v3/responses/401.yaml"
|
||||||
|
"403":
|
||||||
|
$ref: "../../v3/responses/403.yaml"
|
||||||
|
"404":
|
||||||
|
$ref: "../../v3/responses/404.yaml"
|
||||||
|
"429":
|
||||||
|
$ref: "../../v3/responses/429.yaml"
|
||||||
|
"500":
|
||||||
|
$ref: "../../v3/responses/500.yaml"
|
||||||
|
|
||||||
delete:
|
delete:
|
||||||
operationId: deleteIdentity
|
operationId: deleteIdentity
|
||||||
@@ -35,7 +74,9 @@ delete:
|
|||||||
summary: Deletes an identity.
|
summary: Deletes an identity.
|
||||||
description: >-
|
description: >-
|
||||||
The API returns successful response if the requested identity was deleted.
|
The API returns successful response if the requested identity was deleted.
|
||||||
A token with ORG_ADMIN authority is required to call this API.
|
security:
|
||||||
|
- bearerAuth:
|
||||||
|
- "idn:identity:delete"
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: identityId
|
name: identityId
|
||||||
@@ -45,25 +86,25 @@ delete:
|
|||||||
description: Identity Id
|
description: Identity Id
|
||||||
example: ef38f94347e94562b5bb8424a56397d8
|
example: ef38f94347e94562b5bb8424a56397d8
|
||||||
responses:
|
responses:
|
||||||
'204':
|
"204":
|
||||||
$ref: '../../v3/responses/204.yaml'
|
$ref: "../../v3/responses/204.yaml"
|
||||||
'400':
|
"400":
|
||||||
description: >-
|
description: >-
|
||||||
Client Error - Returned if the request body is invalid. It may indicate that the specified identity is marked as protected and cannot be deleted.
|
Client Error - Returned if the request is invalid. It may indicate that the specified identity is marked as protected and cannot be deleted.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '../../v3/schemas/ErrorResponseDto.yaml'
|
$ref: "../../v3/schemas/ErrorResponseDto.yaml"
|
||||||
'401':
|
"401":
|
||||||
$ref: '../../v3/responses/401.yaml'
|
$ref: "../../v3/responses/401.yaml"
|
||||||
'403':
|
"403":
|
||||||
$ref: '../../v3/responses/403.yaml'
|
$ref: "../../v3/responses/403.yaml"
|
||||||
'404':
|
"404":
|
||||||
$ref: '../../v3/responses/404.yaml'
|
$ref: "../../v3/responses/404.yaml"
|
||||||
'429':
|
"429":
|
||||||
$ref: '../../v3/responses/429.yaml'
|
$ref: "../../v3/responses/429.yaml"
|
||||||
'500':
|
"500":
|
||||||
$ref: '../../v3/responses/500.yaml'
|
$ref: "../../v3/responses/500.yaml"
|
||||||
|
|
||||||
patch:
|
patch:
|
||||||
operationId: patchIdentity
|
operationId: patchIdentity
|
||||||
@@ -74,9 +115,12 @@ patch:
|
|||||||
Allows updating individual fields on an Identity using the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard.
|
Allows updating individual fields on an Identity using the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard.
|
||||||
This endpoint is internal only and not intended to be moved to V3.
|
This endpoint is internal only and not intended to be moved to V3.
|
||||||
When HEAD and DELETE endpoints are moved to V3 we will need to separate this entity and keep PATCH in beta only.
|
When HEAD and DELETE endpoints are moved to V3 we will need to separate this entity and keep PATCH in beta only.
|
||||||
|
security:
|
||||||
|
- bearerAuth:
|
||||||
|
- "idn:identity-internal:update"
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: id
|
name: identityId
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
@@ -100,22 +144,22 @@ patch:
|
|||||||
path: "/internalCloudStatus"
|
path: "/internalCloudStatus"
|
||||||
value: "UNREGISTERED"
|
value: "UNREGISTERED"
|
||||||
responses:
|
responses:
|
||||||
'200':
|
"200":
|
||||||
description: >-
|
description: >-
|
||||||
Indicates the PATCH operation succeeded, and returns the identity's new representation.
|
Indicates the PATCH operation succeeded, and returns the identity's new representation.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '../../beta/schemas/InternalIdentityDto.yaml'
|
$ref: "../../beta/schemas/InternalIdentityDto.yaml"
|
||||||
'400':
|
"400":
|
||||||
$ref: '../../v3/responses/400.yaml'
|
$ref: "../../v3/responses/400.yaml"
|
||||||
'401':
|
"401":
|
||||||
$ref: '../../v3/responses/401.yaml'
|
$ref: "../../v3/responses/401.yaml"
|
||||||
'403':
|
"403":
|
||||||
$ref: '../../v3/responses/403.yaml'
|
$ref: "../../v3/responses/403.yaml"
|
||||||
'404':
|
"404":
|
||||||
$ref: '../../v3/responses/404.yaml'
|
$ref: "../../v3/responses/404.yaml"
|
||||||
'429':
|
"429":
|
||||||
$ref: '../../v3/responses/429.yaml'
|
$ref: "../../v3/responses/429.yaml"
|
||||||
'500':
|
"500":
|
||||||
$ref: '../../v3/responses/500.yaml'
|
$ref: "../../v3/responses/500.yaml"
|
||||||
|
|||||||
@@ -1,66 +1,52 @@
|
|||||||
# The Identity DTO returned by the v3 identities APIs
|
# The Identity DTO returned by the v3 identities APIs
|
||||||
type: object
|
allOf:
|
||||||
title: IdentityDto
|
- $ref: './BaseCommonDto.yaml'
|
||||||
properties:
|
- type: object
|
||||||
id:
|
title: IdentityDto
|
||||||
type: string
|
properties:
|
||||||
readOnly: true
|
alias:
|
||||||
example: '6c9079b270a266a60170a2779fcb0006'
|
type: string
|
||||||
name:
|
description: Alternate unique identifier for the identity
|
||||||
type: string
|
example: 'walter.white'
|
||||||
description: The name of the identity
|
emailAddress:
|
||||||
example: 'brandin.gray'
|
type: string
|
||||||
displayName:
|
description: The email address of the identity
|
||||||
type: string
|
example: 'sender@example.com'
|
||||||
description: The display name of the identity
|
processingState:
|
||||||
example: 'Brandin Gray'
|
type: string
|
||||||
emailAddress:
|
nullable: true
|
||||||
type: string
|
description: The processing state of the identity
|
||||||
description: The email address of the identity
|
enum:
|
||||||
example: 'sender@example.com'
|
- ERROR
|
||||||
processingState:
|
- OK
|
||||||
type: string
|
example: ERROR
|
||||||
nullable: true
|
identityStatus:
|
||||||
description: The processing state of the identity
|
type: string
|
||||||
enum:
|
description: The identity's status in the system
|
||||||
-ERROR
|
enum:
|
||||||
identityStatus:
|
- UNREGISTERED
|
||||||
type: string
|
- REGISTERED
|
||||||
description: The identity's status in the system
|
- PENDING
|
||||||
enum:
|
- WARNING
|
||||||
- UNREGISTERED,
|
- DISABLED
|
||||||
- REGISTERED,
|
- ACTIVE
|
||||||
- PENDING,
|
- DEACTIVATED
|
||||||
- WARNING,
|
- TERMINATED
|
||||||
- DISABLED,
|
- ERROR
|
||||||
- ACTIVE,
|
- LOCKED
|
||||||
- DEACTIVATED,
|
example: LOCKED
|
||||||
- TERMINATED,
|
managerRef:
|
||||||
- ERROR,
|
$ref: '../../v3/schemas/BaseReferenceDto.yaml'
|
||||||
- LOCKED
|
isManager:
|
||||||
managerId:
|
type: boolean
|
||||||
type: string
|
description: Whether this identity is a manager of another identity
|
||||||
nullable: true
|
example: true
|
||||||
description: The identity ID of the user marked as this identity's manager
|
lastRefresh:
|
||||||
example: 2c9079b270a266a60170a2779fcb0007
|
type: string
|
||||||
isManager:
|
format: date-time
|
||||||
type: boolean
|
description: The last time the identity was refreshed by the system
|
||||||
description: Whether this identity is marked as the manager of another identity
|
example: '2020-11-22T15:42:31.123Z'
|
||||||
example: true
|
attributes:
|
||||||
lastRefresh:
|
type: object
|
||||||
type: string
|
description: A map with the identity attributes for the identity
|
||||||
format: date-time
|
example: '{"uid":"Walter White","firstname":"walter","cloudStatus":"UNREGISTERED","displayName":"Walter White","identificationNumber":"942","lastSyncDate":1470348809380,"email":"walter@gmail.com","lastname":"white"}'
|
||||||
description: The last time the identity was refreshed by the system
|
|
||||||
example: '2020-11-22T15:42:31.123Z'
|
|
||||||
created:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
description: When this identity was created
|
|
||||||
example: '2020-12-1T18:40:35.772Z'
|
|
||||||
modified:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
description: When this identity was last modified or updated
|
|
||||||
attributes:
|
|
||||||
type: object
|
|
||||||
description: A map the identity attributes for the identity
|
|
||||||
|
|||||||
Reference in New Issue
Block a user