The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
2answers
7k views

Determine if SPPrincipal is SPUser, SPGroup or AD User

Context I have a List<SPPrincipal> that is a mix of SPGroup, SPUser and AD Users. Problem I'm trying to find out how to determine if an SPPrincipal I have is an SPUser, SPGroup or an AD ...
2
votes
2answers
547 views

Is possible to rename a SPUser(IsDomainGroup) LoginName?

I want to rename SPPrincipals that are ADGroups. I've tried with $SPFarm = Get-SPFarm #$SPFarm.MigrateGroup("loginName", "newLoginName") $SPFarm.MigrateUserAccount("loginName", "newLoginName", ...
2
votes
0answers
226 views

How do I get Active Directory Group Name from Sharepoint programmatically?

So my problem is this: I have created a Sharepoint Group and added a New User, which in fact is an Active Directory Group. Now I loggin using an account from this Active Directory Group. I need this ...
1
vote
0answers
50 views

How to load Group.Owner properties using CSOM

When I try to load owner = TargetSite.Web.EnsureUser(grp.Owner.LoginName); I got the exception : The property or field has not been initialized. It has not been requested or the ...
1
vote
0answers
26 views

People Service ResolvePrincipals does not resolve SharePoint groups when the PrincipalType is All and SharePoint is using claims based authentication

I'm updating some legacy code which relies on the People service. SharePoint groups do not resolve on a webapplication in SP2013 with the authentication provider set to Claims Based Authentication ...
1
vote
1answer
802 views

ResolvePrincipal returns SPPrincipalInfo with PrincipalId == -1

When/why does SPUtility.ResolvePrincipal return a non-null SPPrincipalInfo with a PrincipalId of -1 ? I can manually assign rights to the user through the web interface. The user resides in an active ...
0
votes
2answers
2k views

SPFieldUserValue and SPPrincipal

I have a complex application that have several field of type UserMulti. These fields can accept either SPUser or SPGroup or a combination of both kind. I have in my code the ID and the name of a ...