{"type":"api","title":"Update user in the local authentication store","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/c92e7384-b2f4-3d3b-8e8e-03a9325b07bb","info":{"title":"Crosswork RBAC API - Version 1","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"description":"Crosswork Role-based Access Control APIs","license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"1.0.0"},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/RBAC/rbac-v1-overview.md"}},"swagger":"2.0","basePath":"/crosswork/aaa/v1","schemes":["https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Use a bearer token to authenticate requests. Include the token in the Authorization header with the prefix 'Bearer '."}}},"spec":{"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","responses":{"204":{"description":"No Content. The request was successful and there is no additional content in the response body.","schema":{"type":"object","properties":{"rbacEmpty":{"type":"object"}},"$$ref":"#/definitions/rbacEmpty"}},"403":{"description":"Forbidden. The server recognizes the authentication credentials, but the client is not authorized to perform this request."}},"parameters":[{"name":"Username","description":"ID of the user being updated","in":"path","required":true,"type":"string"},{"name":"body","description":"Updated values for the attributes of the user","in":"body","required":true,"schema":{"type":"object","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","items":{"type":"object","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."}},"title":"Device Access Groups are defined parts of the network, so that user access can be limited to the parts they are assigned.","$$ref":"#/definitions/rbacDeviceAccessGroup"}}},"example":{"Username":"username","Password":"UpdatePassword","PolicyId":"UpdatedPolicyId","FirstName":"UpdatedFirstName","LastName":"UpdatedLastName","DeviceAccessGroups":[{"UUID":"Update UUID","DomainName":"Update DomainName"}]},"title":"Update user request","$$ref":"#/definitions/rbacUpdateUserReq"}}],"tags":["rbac"],"__originalOperationId":"UpdateUser","consumes":["application/json"],"produces":["application/json"],"security":[{"bearerAuth":[]}],"method":"put","path":"/user/{Username}"}}