This command returns all information about ModernBill administrators including helpdesk information and bookmarks. Retrieving all helpdesk information can take substantial time if there are many tickets and buckets, so use with caution. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the GetAdmins command:
<mbapi> <command><!-- None --></command> <showXMLHeader><!-- None --></showXMLHeader> <params> <adminID><!-- int --></adminID> <adminUsername><!-- string --></adminUsername> <adminEmail><!-- string --></adminEmail> <adminFirstName><!-- string --></adminFirstName> <adminLastName><!-- string --></adminLastName> <adminActive><!-- int --></adminActive> <themeID><!-- int --></themeID> <languageID><!-- int --></languageID> <countriesID><!-- int --></countriesID> <getAdminGroupData><!-- int --></getAdminGroupData> <actionName><!-- string --></actionName> <getBookmarkData><!-- int --></getBookmarkData> <getHelpdeskDepartmentData><!-- int --></getHelpdeskDepartmentData> <getHelpdeskBucketData><!-- int --></getHelpdeskBucketData> <getAssignedTicketData><!-- int --></getAssignedTicketData> <getTransferredTicketData><!-- int --></getTransferredTicketData> <sortDir><!-- None --></sortDir> <sortColumn><!-- None --></sortColumn> <recordOffset><!-- None --></recordOffset> <numRecords><!-- None --></numRecords> </params> </mbapi>
None
mbapi
command
showXMLHeader
params
adminID
The ID of the admin to fetch. This will always select at most 1 admin.
adminUsername
The username of the admin to fetch. This is the name that the admin logs into the system as.
adminEmail
The email of the admin to fetch.
adminFirstName
The given name of the admin to fetch.
adminLastName
The surname of the admin to fetch.
adminActive
Set to 1 to fetch admins that are active. Set to 0 to fetch admins that are not active.
themeID
The ID of the default theme for this admin.
languageID
The ID of the default language for this admin. If a language pack is not available, only date/time information will be displayed in this language. If a pack is available, all defined constants will be displayed.
countriesID
The ID of the country for this admin. Used in conjucntion with teh language ID to define the locale for this admin.
getAdminGroupData
Set to 1 to return all group data to which this admin belongs, 2 to get all actions in those groups.
actionName
If getAdminGroupData is set to 2, then you can pass in the current actionName to verify the admin has access to this action.
getBookmarkData
Set to 1 to return all bookmark data for this admin.
getHelpdeskDepartmentData
Set to 1 to return all helpdesk departments this admin belongs to.
getHelpdeskBucketData
Set to 1 to return all helpdesk buckets this admin are assigned to.
getAssignedTicketData
Set to 1 to return all helpdesk tickets this admin are assigned to.
getTransferredTicketData
Set to 1 to return all helpdesk tickets this admin transfered to another admin.
sortDir
sortColumn
recordOffset
numRecords