Add SharePoint 2013 users to site collection using PowerShell

In SharePoint many times you give users permission but you would not be able to access them when using with custom app or custom component you  build until user access the site once. This is because SharePoint maintains the list of all the users  under User Information List. This list is hidden list that you cannot access from the user interface. Even if you go to this list it will only show you the users but not allow you to add users to the list.

Following PowerShell will add users to list without them accessing the site. the following code only adds one user but you can get creative and read the users from CSV or XML and add them in the loop.

$site = Get-SPSite https://SiteCollectionURL/
$web = $site.OpenWeb()
$user = $web.EnsureUser(“DOMAIN\user”)
$web.AllUsers.Add($user.LoginName,$user.Email, $user.Name,“Added Using PowerShell”)
$web.Update()

$web.Dispose()
$site.Dispose()

I am pretty excited to mention that I have been selected to speak at Collab365 event. For anyone who does not know Collab365 is an online 24 hour conference covering nothing but Microsoft Office365, SharePoint and Microsoft Azure. It’s free, global and will feature many known speakers, including me. 😉

I will be presenting two sessions. One on Directory Synchronization and another on setting up SharePoint 2013 environment in MS Azure.

For anyone who is interested in an Agenda it can be accessed below.

https://collab365.conferencehosts.com/confs/2015-1/SitePages/Agenda.aspx

You can watch entire conference on-deman now by registering for free.

https://collab365.conferencehosts.com/confs/2015-1/SitePages/Lobby.aspx?clbRefreshClaims

I would like to thank Organizers, Sponsors and everyone who attended my sessions.

Office 365 – SharePoint Online – Group Owners cannot add users

Today I am going to talk about this SharePoint behavior which is by design and does seem to confuse some users.

When you create groups under Peoples Groups you have an option to specify Group Owner. Now you would think making someone a Group Owner would allow them to add users to that group.

But this is not how it works. For any group owners to be able to add users in the group they need to have Manage Permission permission level assigned to them.

To create custom permission level and assign that to SharePoint group you can follow the steps mentioned below.

How to create and manage permissions level

 

Office 365 SharePoint Resource Quota

When you creating a new Site Collection in SharePoint Online using Admin interface you will see it asks you to provide two settings. i.e. Storage and Resource Quota.

For the resource quota many times this question comes about what are they and how does they get calculated. Resource quotas are used to limit the risk that sand-boxed custom code can have on your site collection quota i.e. CPU and Memory.

If you are using sandbox custom solutions then the resource quota will be used based on whatever amount of resources it will consume. If you do not have any sandbox solutions then increasing or decreasing the resource on your site collection should not have any performance issue.

Marc posted a really good blog post on how to manager your resources with Office 365.

http://sympmarc.com/2012/03/01/managing-resources-in-sharepoint-online-office365-site-collections-you-are-approaching-the-maximum-storage-limit/

 

Directory Synchronization in Office 365

Last week on April 22, 2015, I was presented at Toronto SharePoint User Group (TSPUG).

I presented on Directory Synchronization in Office 365. Microsoft has been continuously adding new features to their Directory Synchronization tool aka DirSyn.

There is also another tool AADSync that is going to be replacing DirSync.

My session included overview of DirSyn and system requirements for running DirSync and comparing different options available when using different tools.

I would like to thank everyone who attended my session. Please find my presentation slides below.

I hope you find this valuable.

Microsoft MVP Virtual Conference – 2015 – May 14, 15

MVP Virtual Conference
The MVP Virtual Conference (MVP V-Conf) is a new, virtual, 2-day event that showcases how the best and brightest independent technology experts are using Microsoft technologies today. Tune in and see what the community of power users are saying about the mobile-first, cloud-first world of possibility with Microsoft re-imagined.
These sessions will be presented by Americas’ Region Microsoft Most Valuable Professionals (MVPs), who are exceptional community leaders who are passionate about sharing their real-world knowledge of Microsoft products with their IT Pro, developer and consumer communities around the world.
WHEN is the event:

  • May 14th and 15th – 8am to 6pm PST (Pacific)​
  • Steve Guggenheimer Keynote at 8am on May 14th

5 TRACKS​

  • IT Pro | Developer | Consumer | LATAM Track (Spanish) | Brazil Track (Portuguese)​

This event is open for everyone so do not delay and register for this event. REGISTER HERE: http://mvp.microsoft.com/en-us/virtualconference.aspx