{"type":"api","title":"Update user in the local authentication store","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-2/76fd4bb9d069fd2530d7a02f0b3a4ca00eccfd35/c92e7384-b2f4-3d3b-8e8e-03a9325b07bb","info":{"title":"Crosswork RBAC API - Version 1","description":"Crosswork Role-based Access Control APIs","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"7.2.0"},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/RBAC/rbac-v1-overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://{cw_ip}:30603/crosswork/aaa/v1"}],"securitySchemes":{"bearerAuth":{"type":"apiKey","description":"Use a bearer token to authenticate requests. Include the token in the Authorization header with the prefix 'Bearer '.","name":"Authorization","in":"header"}}},"spec":{"tags":["rbac"],"summary":"Update user in the local authentication store.","description":"This API allows updates to the user's PolicyId, FirstName, LastName, Password and DeviceAccessGroups only.","operationId":"UpdateUser","parameters":[{"name":"Username","in":"path","description":"ID of the user being updated","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Updated values for the attributes of the user","content":{"application/json":{"schema":{"title":"Update user request","type":"object","description":"Details for updating an existing user account","properties":{"PolicyId":{"type":"string","description":"The ID of the RBAC policy or role assigned to this user, dictating their permissions and access rights."},"FirstName":{"type":"string","description":"The first name of the user."},"LastName":{"type":"string","description":"The last name of the user."},"DeviceAccessGroups":{"type":"array","description":"List of device access groups assigned to the user.","items":{"title":"Device Access Groups are defined parts of the network, so that user access can be limited to the parts they are assigned.","type":"object","description":"Device Access Group details","properties":{"Uuid":{"type":"string","description":"The unique identifier (UUID) of the device access group."},"DomainName":{"type":"string","description":"The human-readable name of the domain, tenant, or network partition represented by this access group."},"Description":{"type":"string","description":"An optional descriptive text explaining the purpose or scope of this device access group."}},"$$ref":"#/components/schemas/rbacDeviceAccessGroup"}}},"example":{"Username":"username","Password":"UpdatePassword","PolicyId":"UpdatedPolicyId","FirstName":"UpdatedFirstName","LastName":"UpdatedLastName","DeviceAccessGroups":[{"UUID":"Update UUID","DomainName":"Update DomainName"}]},"$$ref":"#/components/schemas/rbacUpdateUserReq"}}},"required":true},"responses":{"204":{"description":"No Content. The request was successful and there is no additional content in the response body.","content":{"application/json":{"schema":{"type":"object","description":"An empty object schema","properties":{"rbacEmpty":{"type":"object","description":"An empty object schema.","properties":{}}},"$$ref":"#/components/schemas/rbacEmpty"}}}},"403":{"description":"Forbidden. The server recognizes the authentication credentials, but the client is not authorized to perform this request.","content":{}}},"x-codegen-request-body-name":"body","__originalOperationId":"UpdateUser","security":[{"bearerAuth":[]}],"method":"put","path":"/user/{Username}"}}