MaxStrueverWipro

Check if PIUser is Disabled?

Discussion created by MaxStrueverWipro on Jun 3, 2013
Latest reply on Jun 3, 2013 by MaxStrueverWipro

Is it possible to check if a PI User is disabled in the security database?

 

I would like to perform certain actions on a PIUser depending on whether or not the user is enabled or disabled. 

 

But I cannot seem to find an "Enabled" boolean property as I would have expected. 

 

 I am using PISDK 1.3.6

 
PIUser aPIUser = MyPIServer.PIUsers[Username];
//check if user is enabled?!
if(aPIUser.Enabled)
{
    //perform actions for enabled users
}
else
{
    //perform actions for disabled users
} 

 

 

Also,

 

Will there be a way to programmatically work with Identities? It seems that it is there under IServerConnect but not implemented yet. 

Outcomes