PUT V3/odata/User({key})
Updates User entity
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
UserId from User entity |
integer |
Required |
Body Parameters
QicsUnity.Api.Areas.V3.Models.UserName | Description | Type | Additional information |
---|---|---|---|
UserId |
Gets or sets the UserId |
integer |
Required 64-bit signed integer |
UserName |
Gets or sets the user name |
string |
Required |
AllCompanies |
Gets or sets a value indicating whether user can access all companies |
boolean |
Required |
AssignedCompanyIds |
Gets or sets the list of AssignedCompanyId values of companies the user belongs to. This field is used only when AllCompanies is set to False. |
Collection of integer | |
IsActive |
Gets or sets a value indicating whether user is active |
boolean |
Required |
HasMenuVisible |
Gets or sets a value indicating whether user has menu visible |
boolean |
Required |
AllowAccessTo |
Gets or sets application where user has access |
QicsUnity.Api.Areas.V3.Models.UserAllowAccessTo |
Required |
EmployeeId |
Gets or sets a reference to the Employee table |
integer |
64-bit signed integer Nullable |
RoleIds |
Gets or sets the list of RoleId values of roles the user belongs to |
Collection of integer | |
RequireTwoFactor |
Gets or sets a value indicating whether Two-factor authentication is required. Filtering by this field is not supported. |
boolean |
Required |
SuppressTwoFactor |
Gets or sets a value indicating whether Two-factor authentication is suppressed. Filtering by this field is not supported. |
boolean |
Required |
Password |
Gets or sets password. Filtering by this field is not supported. Used only when inserting user, returns null (is hidden) in responses. |
string | |
ItemDisplayFormat |
Gets or sets item display format user preference. Filtering by this field is not supported. |
QicsUnity.Api.Areas.V3.Models.ItemDisplayFormat |
Nullable |
Language |
Gets or sets language user preference. Filtering by this field is not supported. |
QicsUnity.Api.Areas.V3.Models.LanguageType |
Nullable |
RegionalFormatting |
Gets or sets regional formatting user preference. Filtering by this field is not supported. |
QicsUnity.Api.Areas.V3.Models.RegionalFormatting |
Nullable |
Request Formats
application/json, text/json
{ "UserId": "1", "UserName": "sample 2", "AllCompanies": true, "AssignedCompanyIds": [ "1", "2" ], "IsActive": true, "HasMenuVisible": true, "AllowAccessTo": "FortesMilestones", "EmployeeId": "1", "RoleIds": [ "1", "2" ], "RequireTwoFactor": true, "SuppressTwoFactor": true, "Password": "sample 8", "ItemDisplayFormat": "Code", "Language": "Company", "RegionalFormatting": "English" }
application/xml, text/xml
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V3.Models"> <AllCompanies>true</AllCompanies> <AllowAccessTo>FortesMilestones</AllowAccessTo> <AssignedCompanyIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </AssignedCompanyIds> <EmployeeId>1</EmployeeId> <HasMenuVisible>true</HasMenuVisible> <IsActive>true</IsActive> <ItemDisplayFormat>Code</ItemDisplayFormat> <Language>Company</Language> <Password>sample 8</Password> <RegionalFormatting>English</RegionalFormatting> <RequireTwoFactor>true</RequireTwoFactor> <RoleIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </RoleIds> <SuppressTwoFactor>true</SuppressTwoFactor> <UserId>1</UserId> <UserName>sample 2</UserName> </User>
Response Information
Resource Description
QicsUnity.Api.Areas.V3.Models.UserName | Description | Type | Additional information |
---|---|---|---|
UserId |
Gets or sets the UserId |
integer |
Required 64-bit signed integer |
UserName |
Gets or sets the user name |
string |
Required |
AllCompanies |
Gets or sets a value indicating whether user can access all companies |
boolean |
Required |
AssignedCompanyIds |
Gets or sets the list of AssignedCompanyId values of companies the user belongs to. This field is used only when AllCompanies is set to False. |
Collection of integer | |
IsActive |
Gets or sets a value indicating whether user is active |
boolean |
Required |
HasMenuVisible |
Gets or sets a value indicating whether user has menu visible |
boolean |
Required |
AllowAccessTo |
Gets or sets application where user has access |
QicsUnity.Api.Areas.V3.Models.UserAllowAccessTo |
Required |
EmployeeId |
Gets or sets a reference to the Employee table |
integer |
64-bit signed integer Nullable |
RoleIds |
Gets or sets the list of RoleId values of roles the user belongs to |
Collection of integer | |
RequireTwoFactor |
Gets or sets a value indicating whether Two-factor authentication is required. Filtering by this field is not supported. |
boolean |
Required |
SuppressTwoFactor |
Gets or sets a value indicating whether Two-factor authentication is suppressed. Filtering by this field is not supported. |
boolean |
Required |
Password |
Gets or sets password. Filtering by this field is not supported. Used only when inserting user, returns null (is hidden) in responses. |
string | |
ItemDisplayFormat |
Gets or sets item display format user preference. Filtering by this field is not supported. |
QicsUnity.Api.Areas.V3.Models.ItemDisplayFormat |
Nullable |
Language |
Gets or sets language user preference. Filtering by this field is not supported. |
QicsUnity.Api.Areas.V3.Models.LanguageType |
Nullable |
RegionalFormatting |
Gets or sets regional formatting user preference. Filtering by this field is not supported. |
QicsUnity.Api.Areas.V3.Models.RegionalFormatting |
Nullable |
Response Formats
application/json, text/json
{ "UserId": "1", "UserName": "sample 2", "AllCompanies": true, "AssignedCompanyIds": [ "1", "2" ], "IsActive": true, "HasMenuVisible": true, "AllowAccessTo": "FortesMilestones", "EmployeeId": "1", "RoleIds": [ "1", "2" ], "RequireTwoFactor": true, "SuppressTwoFactor": true, "Password": "sample 8", "ItemDisplayFormat": "Code", "Language": "Company", "RegionalFormatting": "English" }
application/xml, text/xml
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V3.Models"> <AllCompanies>true</AllCompanies> <AllowAccessTo>FortesMilestones</AllowAccessTo> <AssignedCompanyIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </AssignedCompanyIds> <EmployeeId>1</EmployeeId> <HasMenuVisible>true</HasMenuVisible> <IsActive>true</IsActive> <ItemDisplayFormat>Code</ItemDisplayFormat> <Language>Company</Language> <Password>sample 8</Password> <RegionalFormatting>English</RegionalFormatting> <RequireTwoFactor>true</RequireTwoFactor> <RoleIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </RoleIds> <SuppressTwoFactor>true</SuppressTwoFactor> <UserId>1</UserId> <UserName>sample 2</UserName> </User>