Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Security based on user profile value

  Asked By: Madison    Date: May 04    Category: Sharepoint    Views: 940

Is is possible to setup security for a web site based on the value of a
specific field in the user profile?

I have a field in the user profile (imported from AD) call it ABC.
If ABC = "a" then they should have access to the site.
If ABC <> "a" then they should not.



2 Answers Found

Answer #1    Answered By: Kurt Gilbert     Answered On: May 04

It's not possible without some custom code that would have to run after
each profile  import to make the changes on the base site  security.

A users MOSS Profile is completely different than the core sites
security, so you would have to have some custom code that stated

If ABC = "a"

Then "Perform whatever mapping you want...what about
individual security  settings on Lists/Document Libraries/Folders/Items

If ABC <> "a" then they should not.

Then perform a mass removal of security on the site
(i.e., remove individual security settings on Lists/Document

Answer #2    Answered By: Jaya Deoghar     Answered On: May 04

Or what about something on the AD side and SharePoint side: When creating the
site, assign security  to an AD group. Then, in AD, either add the user  to the
group directly or use AD scripting (policies or what have you) to assign the
user to the security group depending on the value in another AD field.

You could also do some PowerShell scripting (running on a timed batch file) to
run through the profiles and set security on the site...

Lots of different variations depending on the requirements, limitations, etc...

Didn't find what you were looking for? Find more on Security based on user profile value Or get search suggestion and latest updates.