POST api/Administrators
Creates a new administrator
Request Information
URI Parameters
None.
Body Parameters
AdministratorsNewModels| Name | Description | Type | Additional information |
|---|---|---|---|
|
Administrator email |
string |
Required |
|
| InitialPassword |
Initial password |
string |
Required |
| SendInstruction |
Send email with instruction to administrator |
boolean |
None. |
| FirstName |
First name |
string |
None. |
| LastName |
Last name |
string |
None. |
| Enabled |
Enabled or disabled administrator |
boolean |
Required |
| AccountType |
This value is intended for future RBAC. If set to "Internal" then access to an employee inside company is provided. If set to "External" then access to any third party, such as a customer, is provided. This field can be empty for backward compatibility. |
AdministratorAccountType |
None. |
| PermissionsModels |
Administrator permissions |
Dictionary of string [key] and PermissionEnum [value] |
Required |
| Companies |
Administrator companies |
Collection of string |
None. |
| AccessToCompaniesMode |
Access To Companies Note: The default is "SpecifiedCompanies". If set to "SpecifiedCompanies" then the list of Companies can be empty for backward compatibility. If set to "AllCompanies" then the list of Companies must be empty. |
AccessToCompaniesEnum |
None. |
Request Formats
application/json, text/json
{
"Email": "some@email.com",
"InitialPassword": "some password",
"SendInstruction": true,
"FirstName": "John",
"LastName": "Doe",
"Enabled": true,
"AccountType": 2,
"PermissionsModels": {
"AccessToAllCompanies": 0,
"LicenseActivate": 0,
"AddOrRemoveDestinationForCompany": 0,
"AddOrRemoveDestinationForUser": 0,
"Administrators": 0,
"ADS": 0,
"AssignTags": 0,
"AuditLog": 0,
"BackupHistory": 0,
"Billing": 0,
"CapacityReport": 0,
"CloudRestore": 0,
"CustomizeDashboard": 0,
"Dashboard": 0,
"DeleteDataFromStorage": 0,
"DirectConnectAccess": 0,
"Downloads": 0,
"EC2Snapshots": 0,
"GoogleApps": 0,
"HelpMarketing": 0,
"LicenseBuy": 0,
"Licenses": 0,
"LicenseUsageHistory": 0,
"ManageCompanies": 0,
"ManageImmutability": 0,
"ManageStorageLimitsForCompany": 0,
"ManageStorageLimitsForUser": 0,
"ManageTags": 0,
"Monitiring": 0,
"Notification": 0,
"OnlineAccess": 0,
"StorageLimit": 0,
"PSA": 0,
"PurchaseHistory": 0,
"QuickRestore": 0,
"Rebranding": 0,
"RemoteDeploy": 0,
"RemoteManagment": 0,
"SecurityWidget": 0,
"ShowDeepInstinct": 0,
"ShowRemoteConnection": 0,
"ShowRmm": 0,
"Storage": 0,
"StorageUsage": 0,
"Users": 0,
"UsersCreateEdit": 0,
"UsersDelete": 0
},
"Companies": [
"Company A",
"Company B"
],
"AccessToCompaniesMode": 0
}
application/xml, text/xml
<AdministratorsNewModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
<AccessToCompaniesMode>SpecifiedCompanies</AccessToCompaniesMode>
<AccountType>ExternalAccount</AccountType>
<Companies xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>Company A</d2p1:string>
<d2p1:string>Company B</d2p1:string>
</Companies>
<Email>some@email.com</Email>
<Enabled>true</Enabled>
<FirstName>John</FirstName>
<InitialPassword>some password</InitialPassword>
<LastName>Doe</LastName>
<PermissionsModels xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>AccessToAllCompanies</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>LicenseActivate</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>AddOrRemoveDestinationForCompany</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>AddOrRemoveDestinationForUser</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>Administrators</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>ADS</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>AssignTags</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>AuditLog</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>BackupHistory</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>Billing</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>CapacityReport</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>CloudRestore</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>CustomizeDashboard</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>Dashboard</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>DeleteDataFromStorage</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>DirectConnectAccess</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>Downloads</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>EC2Snapshots</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>GoogleApps</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>HelpMarketing</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>LicenseBuy</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>Licenses</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>LicenseUsageHistory</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>ManageCompanies</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>ManageImmutability</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>ManageStorageLimitsForCompany</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>ManageStorageLimitsForUser</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>ManageTags</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>Monitiring</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>Notification</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>OnlineAccess</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>StorageLimit</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>PSA</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>PurchaseHistory</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>QuickRestore</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>Rebranding</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>RemoteDeploy</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>RemoteManagment</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>SecurityWidget</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>ShowDeepInstinct</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>ShowRemoteConnection</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>ShowRmm</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>Storage</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>StorageUsage</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>Users</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>UsersCreateEdit</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
<d2p1:Key>UsersDelete</d2p1:Key>
<d2p1:Value>None</d2p1:Value>
</d2p1:KeyValueOfstringPermissionEnumlwR_Spsoj>
</PermissionsModels>
<SendInstruction>true</SendInstruction>
</AdministratorsNewModels>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
ID of new administrator or error
stringResponse Formats
application/json, text/json
"sample string"
application/xml, text/xml
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string</string>