{"type":"api","title":"Create user in 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":"Create user in local authentication store.","operationId":"CreateUser","responses":{"201":{"description":"Created. The request was successful. One or more new resources were created.","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":"body","description":"Specification of the Create User.","in":"body","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"Username":{"type":"string","description":"The unique username for the account."},"Password":{"type":"string","description":"The password for the user account. This field should be securely handled (e.g., hashed, not stored in plain text)."},"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."},"Status":{"type":"string","description":"The current status of the user account."},"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":{"type":"string"},"Password":{"type":"string"},"PolicyId":{"type":"string"},"FirstName":{"type":"string"},"LastName":{"type":"string"},"Status":{"type":"string"},"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"}}},"title":"User represents a user account created on a local authentication store.","$$ref":"#/definitions/rbacUser"},"example":{"superuser":{"Username":"superuser","Password":"default","PolicyId":"admin","FirstName":"John","LastName":"Doe","DeviceAccessGroups":[{"UUID":"uuid","DomainName":"VD1"}]}},"$$ref":"#/definitions/rbacUsers"}}],"tags":["rbac"],"__originalOperationId":"CreateUser","consumes":["application/json"],"produces":["application/json"],"security":[{"bearerAuth":[]}],"method":"post","path":"/user"}}