Jump to content
Ben Vigil

Is the user an Admin?

Recommended Posts

In a plugin, how do I determine if the logged on Automate user is an admin (or Super Admin, I guess)?

For example, I can do this...

IControlCenter2 cc = (IControlCenter2)host;
UserInfo user = cc.GetUser(cc.UserID);

But the only thing I see in the UserInfo object is cc.Supervisor.

For example, the IPermissions interface passes the value isSuperAdmin to the plugin.

public Hashtable GetPermissionSet(int userId, bool isSuperAdmin, string userClasses)

This is the value I'd like to retrieve on the fly.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...