Younes
Younes

Reputation: 4823

Prevent a certain user with the Role Sitecore Client Managing from seing the admin account

Is it possible to prevent user X to see the admin account in the User - Manager? We want to be able to make sure this account will never be deleted.

Upvotes: 1

Views: 331

Answers (2)

Marko
Marko

Reputation: 433

I haven't done this before, but if I was attacking this problem, I would look at subclassing the user manager to remove the admin user before it is shown to the user. WARNING: This is quite a complicated and fragile change and may not be appropriate in your environment so be warned.

If you're interested, then in v6.4.1, I would look at the onload() function of the Sitecore.Shell.Applications.Security.UserManager class. Specifically at the managedUsers variable and possibly removing the admin user from that variable before it is set to be managed by the grid.

That's where I would start, but I'm not sure if it would work as I said, I haven't needed to implement this particular requirement before.

Upvotes: 0

Yan Sklyarenko
Yan Sklyarenko

Reputation: 32270

I don't think this is at all possible. If a user has permissions to run security apps (User Manager), he will see all roles / users there.

Upvotes: 1

Related Questions