privilege level database

lawrence whittemore asked on October 5, 2021 21:49

when you set the privilege level on a user, what fields does it set in the database. I see administrator and global admin both set the isglobaladministrator field to 1. What else is set that distinguishes between the 2?

Recent Answers


Juraj Ondrus answered on October 6, 2021 07:34

Changing the privilege level sets the value in the UserPrivilegeLevel column in the CMS_User table. Possible values can be found in the API documentation.

1 votesVote for this answer Mark as a Correct answer

Jay Heavner answered on May 31, 2022 23:54

Is this the best way to set the privilege level for a user? I've been looking for an API method but haven't found one.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on June 1, 2022 07:52

Check the API example for creating a new user. There is a line of code which sets the privilege level for the newly created user:

// Sets the user's privilege level to 'Editor'  
newUser.SiteIndependentPrivilegeLevel = UserPrivilegeLevelEnum.Editor;
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.