Tag Info

New answers tagged

0

I got the same error you describe because there were no trust available between the old domain and the new domain. To overcome the error one need to instantiate the old user object with the web attribute to avoid getting an array of the same user instead of an item. Like this: $user = Get-SPUser -Identity "OLD_DOMAIN\old_username" -Web ...


3

There is no white listing functionality that exists in SharePoint Online like that. Your option would be to Allow both external users who accept sharing invitations and anonymous guest links or individually manage access. I would rather do the latter. It isn't too much effort to add external users as necessary. My best practice is to create a new group on ...


1

This should do the trick SPWeb theSite = Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(Context); SPUser theUser = theSite.CurrentUser; string strUserName = theUser.LoginName.ToLower(); string strUserName = strUserName.IndexOf('|') > -1 ? strUserName.Split('|')[1] : strUserName


0

Here's something to start with in C#: $lists = $ctx.Web.Lists $ctx.Load($Lists) $ctx.ExecuteQuery() foreach($list in $lists) { $ras = $list.RoleAssignments $ctx.Load($ras) $ctx.ExecuteQuery() foreach($ra in $ras) { $ctx.Load($ra) $ctx.ExecuteQuery() if ($ra.PrincipalId -eq $everoneUserId) { ...



Top 50 recent answers are included