-
Notifications
You must be signed in to change notification settings - Fork 143
Account Management
The Orion platform provides an API for most account management tasks through the Orion.Accounts
SWIS entity type.
Orion supports tree categories of accounts:
- "Orion accounts" exist only in the Orion database. The default "admin" and "guest" accounts that are created by default when you create a new Orion database fall into this category. The database stores a salted hash of the account's password for authentication.
- "Windows accounts" or "AD accounts" are either local Windows accounts on the Orion server or Active Directory accounts that have been authorized to access Orion.
- "SAML accounts SSO" works by transferring the user’s identity from one place (the identity provider) to another (the service provider).
For "Windows" or "SAML", both individual accounts and group accounts are supported. If group accounts are used, any user who is a member of that group can access Orion. Users who are authorized via group membership inherit permissions from the group but have separate individual storage for preferences.
Note: If it makes sense in your environment, configuring Active Directory or SAML integration for Orion, authorizing an appropriate set of AD/LDAP groups in Orion, and doing account management in AD/LDAP is preferable to directly managing Orion accounts. For Windows, the process is described in this article. For SAML, the process is described in this article
All operations except querying accounts require the AllowAdmin
user right.
To list the accounts or find a particular account, query Orion.Accounts
.
To create a new Orion account, invoke the Orion.Accounts.CreateOrionAccount
verb, which has two parameters:
-
accountID
- the account ID (username) of the new user -
password
- the password for the new user
The account will be created with minimal user rights but no account limitations. They can see any object but can't change anything. To add rights for the user, invoke UpdateAccount
(see below).
To authorize an existing Windows or Active Directory account to access Orion, invoke the Orion.Accounts.CreateWindowsAccount
verb, which has four parameters:
-
accountType
- this should be2
if you are adding an individual user account or3
if you are adding a group account -
userOrGroupName
- the name of the user or group account to add. Use thedomain\username
format -
adminUser
(optional) - if the Orion services do not have rights to query Active Directory, provide the credentials of an account that does -
adminPassword
(optional) - the password foradminUser
, if needed
As with CreateOrionAccount
, the resulting account has minimal user rights but no account limitations. The accountID
of the new account will be the userOrGroupName
provided.
To authorize an existing SAML user to access Orion, invoke the Orion.Accounts.CreateSAMLAccount
verb, which has two parameters:
-
accountType
- this should be5
if you are adding an individual user account or6
if you are adding a group account -
userOrGroupName
- the name of the user or group account to add.
As with CreateOrionAccount
, the resulting account has minimal user rights but no account limitations. The accountID
of the new account will be the userOrGroupName
provided.
To adjust user rights, invoke the Orion.Accounts.UpdateAccount
verb, which has two parameters:
-
accountID
- identifies the account that should be updated -
properties
- a dictionary (JSON object) containing the properties to update
The various AllowXYZ
properties (plus CanClearEvents
) that control user rights show up as "Y"
or "N"
if you query them like SELECT AllowNodeManagement FROM Orion.Accounts WHERE AccountID='bob'
, but when setting them using UpdateAccount
, specify them as a boolean: true
or false
in JSON, $true
/$false
in PowerShell.
To remove a user account, invoke the Orion.Accounts.DeleteAccount
verb, which has one parameter:
-
accountID
- identifies the account to delete
To change a user's password, invoke the Orion.Accounts.ChangePassword
verb, which has two parameters:
-
accountID
- identifies the account whose password will be changed -
password
- the new password for the account
- About SWIS
- Connecting to SWIS
- SWQL Functions
- REST
- PowerShell
- Alerts
- Creating custom properties
- Poller Types
- Network Performance Monitor
- NetFlow Traffic Analyzer
- Network Configuration Manager
- IP Address Manager
- Server & Application Monitor
- Log Analyzer
- Schema reference