Set a user as a system admin (or revoke)

Namespace: SynergyServerScripting.Entities
Assembly: SynergyServerScripting (in SynergyServerScripting.dll)

Public Shared Sub SetSystemAdmin( _ 
ByVal user_id As EntityID, _ 
ByVal is_admin As Boolean, _ 
ByVal db As IDatabase
)
This language is not supported or no code example is available.
public static void SetSystemAdmin( 
EntityID user_id
bool is_admin
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static void SetSystemAdmin( 
EntityID^ user_id
bool is_admin
IDatabase^ db 
)
This language is not supported or no code example is available.
public static function SetSystemAdmin( 
user_id : EntityID
is_admin : boolean
db : IDatabase 
);
This language is not supported or no code example is available.

Parameters

user_id
Type: EntityID

the user id

is_admin
Type: bool

whether or not to set them as a system administrator

db
Type: IDatabase

the db connection object

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1