AddUserAsync

Returns (Task)

Create new User in the designated Folder.

Name Description
folder The folder to create the user in
user The user information to create

Add User Async

Example in C#

// Returns: UserInfo
var userInfo = await client.AddUserAsync(FolderInfo folder, UserInfo user);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/INSTANCE.KEY/users \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.UserInfo, Feenics.Keep.WebApi.Model",
                       "Username":"UserExampleFor_cUrl",
                       "MustChangePassword":false,
                       "CannotChangePassword":false,
                       "IsLockedOut":false,
                       "IsDisabled":false,
                       "LastLoginOn":"0001-01-01T00:00:00",
                       "LastActivityOn":"0001-01-01T00:00:00",
                       "LastPasswordChange":"0001-01-01T00:00:00",
                       "TwoFactorEnabled":false,
                       "PasswordPolicy":null,
                       "Key":null,
                       "CommonName":"UserExampleFor_cUrl",
                       "InFolderHref":null,
                       "InFolderKey":null,
                       "Links":[],
                       "ObjectLinks":null,
                       "Metadata":null,
                       "Notes":null,
                       "Tags":null,
                       "Monikers":null,
                       "Href":null
                   }'