Represents a user in Microsoft SharePoint Foundation.

learn more… | top users | synonyms

0
votes
2answers
163 views

SPUser have logon into Site Collection?

Possible to loop through all Site Collection Users and check if they have ever logon into the Site Collection and when? db table dbo.UserInfo tokens info can be useful? this script can retrieve the ...
0
votes
1answer
775 views

Find SPUser Preferred Name from UserPrincipal

I am looping through a group of UserPrincipal that was retrieved from Active Directory. I need to get find a SPUser using the properties of the UserPrincipal. Once the SPUser is found I will get its ...
0
votes
1answer
202 views

How can I return user-values as a SPUser (Hyperlink) in a visual webpart in C#?

I'm developing a visual webpart (TreeView). If I click on a node (folder), it gives me the credentials of the folder. Now, the values are all appearing in a label. How can I return the users and ...
0
votes
2answers
611 views

EnsureUser not working in Job

Background: sharepoint 2010 custom membership provider custom job to create users Job is deployed by code and executed first time from some WinForms exe, executed by local Administrator. Users are ...
0
votes
2answers
505 views

How to grant permission to use specific Application Page in SharePoint

I have custom application page, now what I want to do, is to allow users ( or SPGroup ) to view and use application page. How this should be done ? Currently only administrator can view application ...
0
votes
1answer
27 views

How to give different permission programmatically on Document Library for different group users?

I have document library & 3 groups(AdminGroup,Reviewer,Distributor). I have already give a permission on groups, AdminGroup has Full Control, Reviewer has Reader & Distributor has None : ...
0
votes
1answer
107 views

Remove user from SPFieldUserValueCollection

I have a "person or group" type column in my calendar list as "Participants". I need to add and remove users from this column. Adding users works fine. When trying to remove a user it does not get ...
0
votes
0answers
66 views

Set-SPUser - not valid user object - 19;#username - powershell

I'm trying to add users to a custom "responsible" group that have the same permissions as owners group. I'm getting member from a list in SP (people and group). $Responsible = ...
0
votes
0answers
84 views

Cannot send Email to Exchange Distribution list

I have this (shortened) piece of code, which does not work like it should and I can not figure out why: SPGroup group = web.SiteGroups["Some Notification Group"]; foreach (SPUser user in group.Users) ...
0
votes
2answers
77 views

How to get from DirectoryEntry to SPuser

I need to get the SPuser for a partcular directory entry. What I need to do is get all the users from an AD group and give them permissions to a list item. The code is: SearchResult result = ...
0
votes
0answers
150 views

Getting a SPUser's title (as it is on Active Directory)

I need to get the Titles (eg: Mr, Mrs, Dr) for SPUsers which are stored in a list. The Title is not available on the SPUser object, is it possible to somehow get this information, assuming it is ...
0
votes
1answer
339 views

How to set a UserMulti field via a UserField Control?

I have a list similar to the usual Tasks Sharepoint List and I introduced the field assigned to as a multi user field like this (I have read somewhere that with Mult option should always be set to ...
0
votes
2answers
2k views

How to get extra User properties?

A few custom properties have been added to the user object via CA. I would I retrieve these fields programmatically? Solution: UserProfileManager mgr = new ...
0
votes
4answers
2k views

How do I restrict access to a particular page in SharePoint?

I want two pages from my site to be restricted from viewers until its contents are thoroughly checked by my team. How do I accomplish this? Thank you very much!
0
votes
1answer
2k views

Get all users from active directory to sharepoint

I have to populate my autocomplete PeopleEditor-like control based on brililant ASPTokenInput with all people from my AD domain. Reflecting PeopleEditor shows a real mess in their Active Directory ...
0
votes
2answers
932 views

Inherit field editor control from SPUserField

I need to implement AutoComplete feature for People Editor in custom field type derived from SPUserField. To do this, I have to customize both render template and field editor control (and other ...
-2
votes
2answers
938 views

Ensure User from multiple domain for user that has never access to sharepoint

This is my situation. I have a farm in which an instance of Sharepoint Foundation is installed.. Windows Server is configure to accept users from 3 trusted domain (xxx, yyy and zzz) Suppose i have ...