Tagged Questions
1
vote
0answers
110 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
2answers
119 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", ...
1
vote
1answer
2k 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 ...