SolarWinds Backup Help

Adding users in JSON-RPC API

To add users, use the AddUser method. Users are added one at a time.

Required parameters

Parameter Description Supported values
userInfo A group of parameters related to the user See below table for child parameters

Optional UserInfo child parameters

Parameter Description Supported values
Name (required) A login name for the user (must be the same as the EmailAddress) String
PartnerId (required)

The ID of the customer the user is created for (retrieved through the GetPartnerInfo method)

Int
RoleId The ID of the role the user will be given (retrieved through the enumerateUserRoles method) Choose Int that correlates to the role below:
  • 1 - SuperUser
  • 2 - Administrator
  • 3 - Manager
  • 4 - Operator
  • 5 - Supporter
  • 6 - Reporter
  • 7 - Notifier
ContactPersonId The ID of the contact person that this new user will be associated with Int
EmailAddress The email address of the user (must be the same as the Name given) String
FirstLoginTime The time-stamp of the first time the user has logged in successfully Int in Unix format. For example, 1535673599 stands for August 30, 2018.
LastLoginTime

The time-stamp of the last time the user has logged in successfully

Int in Unix format. For example, 1535673599 stands for August 30, 2018.
FirstName

The first name of the user

String
FullName The surname of the user String
Title A title given to the user of the user String
PhoneNumber The phone number of the user String

Sample request

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "visa": "33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000",
    "method": "AddUser",
    "params": {
	    "userInfo": {
		"Name" : "backup.test@mail.com",
		"PartnerId" : 123456,
		"RoleId" : 1,
		"EmailAddress" : "backup.test@mail.com",
		"FirstName" : "Backup",
		"FullName" : "Test"
	    }
    }
}

Sample response

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "result": {
	"result": 876543
    },
    "visa": "33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000"
}