openapi: 3.2.0 info: description: API Documentation title: Control-plane UI User Controller API version: '1.0' servers: - url: https://facetsdemo.console.facets.cloud description: Generated server url security: - basicAuth: [] tags: - name: ui-user-controller paths: /cc-ui/v1/users/: get: operationId: getAllUsers responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/User' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Get all users x-summary-source: derived /cc-ui/v1/users/analyze-access: get: operationId: analyzeAccess parameters: - in: query name: permissions required: true schema: uniqueItems: true type: array items: type: string responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/AccessAnalyzerResponse' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Analyze access x-summary-source: derived /cc-ui/v1/users/createAccessToken: post: operationId: createToken parameters: - in: query name: token required: true schema: $ref: '#/components/schemas/UserAccessToken' responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/UserAccessToken' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Create token x-summary-source: derived /cc-ui/v1/users/current-user: get: operationId: getCurrentUser responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Get current user x-summary-source: derived /cc-ui/v1/users/invite-users: post: operationId: inviteUsers requestBody: content: application/json: schema: $ref: '#/components/schemas/InviteUserRequest' required: true responses: '200': description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Invite users x-summary-source: derived /cc-ui/v1/users/list/users-expanded: get: operationId: getAllUsersExpanded responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/ExpandedUser' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Get all users expanded x-summary-source: derived /cc-ui/v1/users/roles: get: operationId: getAllSystemRoles responses: '200': content: application/json: schema: type: array items: type: string enum: - ADMIN - DEVELOPER - VIEWER - GUEST - CLUSTER_ADMIN - CI_AUTOMATION - PRAXIS_AUTOMATION - K8S_READER - K8S_DEBUGGER - K8S_ADMIN - CLI_ARTIFACT_PUSH description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Get all system roles x-summary-source: derived /cc-ui/v1/users/tokens: get: operationId: getToken responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/UserAccessToken' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Get token x-summary-source: derived /cc-ui/v1/users/tokens/{tokenId}: delete: operationId: deleteToken parameters: - in: query name: tokenId required: true schema: type: string responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/UserAccessToken' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Delete token x-summary-source: derived /cc-ui/v1/users/updatePassword: post: operationId: updatePassword requestBody: content: application/json: schema: $ref: '#/components/schemas/PasswordChange' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/Response' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Update password x-summary-source: derived /cc-ui/v1/users/{userId}: delete: operationId: deleteUser parameters: - in: path name: userId required: true schema: type: string responses: '200': content: application/json: schema: type: boolean description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Delete user x-summary-source: derived get: operationId: getUser parameters: - in: path name: userId required: true schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Get user x-summary-source: derived /cc-ui/v1/users/{userId}/user-expanded: get: operationId: getUserExpanded parameters: - in: path name: userId required: true schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/ExpandedUser' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-controller summary: Get user expanded x-summary-source: derived components: schemas: AccessAnalyzerResponse: type: object properties: roles: type: array items: $ref: '#/components/schemas/AccessRoleDetails' userId: type: string username: type: string ExpandedUser: type: object properties: accessibleAccounts: type: array items: $ref: '#/components/schemas/IdName' accessibleEnvironments: type: array items: $ref: '#/components/schemas/EnvInfo' accessibleProjects: uniqueItems: true type: array items: type: string associatedResourceGroups: type: array items: $ref: '#/components/schemas/IdName' baseRole: $ref: '#/components/schemas/RoleInfo' envSpecificRoles: type: array items: $ref: '#/components/schemas/EnvSpecificAccess' groups: type: array items: $ref: '#/components/schemas/IdName' lastAccessedAt: type: string format: date-time picture: type: string serviceAccount: type: boolean userId: type: string userRoles: type: array items: $ref: '#/components/schemas/RoleInfo' username: type: string GithubAppPermissionsPendingErrorDetails: type: object properties: approvalUrl: type: string code: type: string errorCode: type: string message: type: string missingPermissions: type: array items: type: string User: type: object properties: clusterIds: uniqueItems: true type: array items: type: string description: maxLength: 200 minLength: 0 type: string groupId: type: string deprecated: true groupIds: type: array items: type: string id: type: string password: type: string writeOnly: true picture: type: string roles: uniqueItems: true type: array items: type: string serviceAccount: type: boolean teams: uniqueItems: true type: array items: type: string userName: type: string RoleInfo: type: object properties: label: type: string roleName: type: string AccessRoleDetails: type: object properties: clusterId: type: string environment: type: string groupId: type: string groupName: type: string roleLabel: type: string roleName: type: string roleType: type: string Response: type: object properties: code: type: string message: type: string UserAccessToken: required: - name type: object properties: createdOn: type: string format: date-time readOnly: true description: type: string internal: type: boolean name: type: string token: type: string writeOnly: true tokenId: type: string readOnly: true userName: type: string readOnly: true InviteUserRequest: type: object properties: description: maxLength: 200 minLength: 0 type: string groupId: type: string usersEmailList: type: array items: type: string EnvInfo: type: object properties: clusterId: type: string envName: type: string project: type: string PasswordChange: type: object properties: newPassword: type: string oldPassword: type: string ErrorDetails: type: object properties: code: type: string message: type: string IdName: type: object properties: id: type: string name: type: string EnvSpecificAccess: type: object properties: clusterId: type: string envName: type: string project: type: string roleInfo: $ref: '#/components/schemas/RoleInfo' securitySchemes: basicAuth: description: Basic Authentication scheme: basic type: http