How to disable Office Groups and Teams creation the right way.

Why disable groups/ teams creation

Some companies want to permit access to group and our teams creation. There can be many reasons for this. For instance you want to disable the creation of groups and teams to be more in control over these features.

To do this the right way it is recommended that only certain users are able to create groups and teams. In order to perform this it is rather recommended to create a Universal Security Group (which is mail enabled). This group will be used only for group and team creation.

First steps

As mentioned before it is recommended to create a Universal Security Group (which is mail enabled). When you have Azure AD Connect in place you should create this group on-premise and sync this over to Azure AD. That means that you management will maintain On-premise.

You can also create this group in Azure AD itself. If that is your way to go you should just create a security group in Azure AD. Please understand that your management will be in AzureAD/ Office 365.

The Script

To disable the group/ teams creation you can run the script bellow from the Azure AD PowerShell module

$Settings = Get-AzureADDirectorySetting | Where-Object {$_.DisplayName -eq ‘Group.Unified’}
If ( !( $Settings)) {
# No Group.Unified object found, create new settings object from template
Get-AzureADDirectorySettingTemplate | Where-Object {$_.DisplayName -eq ‘Group.Unified’} | Select-Object -ExpandProperty Values
$Template = Get-AzureADDirectorySettingTemplate | Where-Object {$_.DisplayName -eq ‘Group.Unified’}
$Template | Select-Object -ExpandProperty Values
$Settings = $Template.CreateDirectorySetting()
}
$Settings[‘EnableGroupCreation’] = ‘false’
$Settings[‘AllowToAddGuests’] = ‘false’
$Settings[‘GroupCreationAllowedGroupId’] = ( Get-AzureADGroup -SearchString ‘Office365GroupTeamsAdmins‘).ObjectId
If ( Get-AzureADDirectorySetting | Where-Object {$_.DisplayName -eq ‘Group.Unified’} ) {
Get-AzureADDirectorySetting | Where-Object {$_.DisplayName -eq ‘Group.Unified’} | Set-AzureADDirectorySetting -DirectorySetting $Settings
}
Else {
New-AzureADDirectorySetting -DirectorySetting $Settings
}

And make sure there is a Synced universal mail enabled security group with the name Office365GroupTeamsAdmins. Because  the user must be in the group Office365GroupTeamsAdmins to create groups and teams so all other users are not permitted.
Thanks to Michel de Rooij for this script
Please follow and like us:

How to restore Office 365 group

Some of you probably know that it was not possible to restore data in a office group within office 365. Recently microsoft introduced the new functionality to restore office 365 group or team. This means that you can restore a office Group including all content.

Sometimes a removal of a group can really be a pain for the members in this group or team.

First of all a tip on restore Office 365 Group.

Don’t use Remove-MsolGroup because it purges the group permanently. Always use Remove-AzureADMSGroup to delete an O365 group.

When you start with this topic make sure you have Azure Active Directory PowerShell Version 2 installed else you will mis alot of cmdlets. You can download it from the site of Microsoft. The new version of powershell also contains a lot of new features regarding azure ad. You can also use the command connect-azuread to connect directly into office 365.

To get all removed Office 365 Groups execute the command below

Get-AzureADMSDeletedGroup

Before you want to restore the group or team you need to get more details about the removed office 365 group to get more insights into the group or team. You can also get the object id from here .

Execute the Get command included with the objectID of the removed group. you can also look up the objectid in azure ad.

Get-AzureADMSDeletedGroup –Id <ObjectID>

How to restore your deleted Office 365 group

Once you have verified that the group is in soft deleted, the restore command will restore everything in the office group. (it can take up to 2 days to restore everything) I know this can take a long time and you cant see the status of the restore but the wait is worth the effort.

Restore-AzureADMSDeletedDirectoryObject -Id <ObjectID>

I think you will use this a lot when you manage a office 365 tenant

Please follow and like us:

When do i use Onedrive and when to use SharePoint

Often I get the question when you save a file in OneDrive or in SharePoint, this is a common question from customers and colleagues when doing a migration. This is mainly because you can use both platforms to store files and collaborate. Yet there are major differences in the platforms which may affect the way you work significantly.

Save files to OneDrive for business

OneDrive for Business is an application that allows to save files locally and in the Cloud. From OneDrive for Business it is possible to synchronize files across multiple devices and share those files with others.
But when do I put the files in OneDrive for business and when do I store it in SharePoint Online.
Below you find a number of reasons when you use OneDrive:

• If you do not plan to share them with others.
• A small group of people working on files.

When you work on files that are not directly related to a project and are only important for you but you want the ease to share with others. Then you can make the best use of OneDrive.

Save files to a SharePoint team or project site library

A SharePoint site is a place where users can collaborate on files and ideas. The team site is set up so that users of the team site can communicate with each other. In addition, a team site is more like workflows wiki’s and the task functionality so that the team can work better together.

• You want to place a file on the team site when it is important for the team.
• If you want to have more influence on the rights which are distributed.
• If you want to use Workflows for approving documents and other files
• If you expect that all related files of the project are in the team site.
• If you want to use extended metadata and this will trigger a checkin and check out

A Project site is designed so here are the key components to run a project.
• You want to place a file on the project as it is important for the project.
• If you want to have more influence on the rights which are distributed.
• If you want to create tasks for team members which have linked a document.
• If you expect that all related files of the project are in the team site.
• If you want to use extended metadata and this will trigger a check in and check out
• If you want a place where you can run your basic project management and have features like tasks and timeline at your disposal.

In some cases, you can make the best use of Office Groups. The Groups functionality includes a OneDrive for business that focuses on a small set of people. Groups is actually a SharePoint team site with the functionality of OneDrive for Business and SharePoint library. Where you have a calendar, email address and OneDrive will also now added Yammer. In the modern teamsite the Group functions are also offered in a team site.

Please follow and like us:

My Onedrive for business can’t sync

My OneDrive for business can not synchronize with Office365. We know that an update to an document or folder can çreate an error in the sync. There are some problems with OneDrive where you are not authorized by your system administrator to solve this issue. If the problem is very harsh and you or the administrator want to resolve this issue you sometime need to create a call with the Office 365 support team.

Luckily there are plenty of things you can do with OneDrive Restore.

Actually, there are always a few things you already need to do and know before you sync using OneDrive for business.

Think of it as a URL that you enter when you search in your browser each / example is a folder, but if for example you have a file with the following name “a new way to sync Version 80/20 note.doc” this causes the same problems when you use the & sign the document will not synchronize and you get red crosses.

The complete list of characters that can not be used (in dutch only).

There is also a problem when a file is longer than 255 characters. This can happen when you have a file with only 10 characters, probably the file is in a folder within a folder, etc. for example “C: \ Users \ Documents \ private \folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\folder\note.docx”

Also, there is currently still a problem that your personal OneDrive exceeds 20,000 files. a smart temporary solution isto merge any files in a .zip file if you have for example a store with lots of files you used purely for backup, it is interesting to zip these files so that for example in 2000 become one file.

Please follow and like us:

Restore Office 365 Video Portal Hub

Office 365 changes al the time, I tried to see if I could Disable the Video Portal, to test what happens if you delete de Video Portals.

En my Tenant Admin for SharePoint settings I disabled the Video Portal:

Disable Office 365 Video Portal

I saw my Video app disappear from the App Launcher. Now it is time to delete the site collections.

So at this point I am a Tenant Admin, and I want to clean my Site Collections. The Video Portal creates a few SharePoint Site Collections and one of them is named Hub. This is the main Site Collection for the Video Portal where all your videos are shown.

So I Delete the Video Portal Hub Site Collection. and delete it from the Recycle bin.

Now it is time to recreate this Site Collection? I turned the Video Portal back on using the setting above. I hoped that it would recreate the Hub but that didnt help. Only the Video App in the launcher came back with a nice 404 Page Not Found

The Solution for this issue is to go to the url Bellow

Http://tenant.sharepoint.com/_layouts/15/videoredirect.aspx

This will recreate the hub Site Collection.

Please follow and like us:

Finding the ID for the Site Template in SharePoint online

Finding the ID for you custom template can be hard if you don’t know how to do it.

For this step I prefer to use Google Chrome, Chrome is easier in finding code than IE.

Navigate true the Tenant admin to the site which you want to use as you custom template (when you have saved this this will appear in the TAB custom).

Example https://tenantname.sharepoint.com/_layouts/15/newsbweb.aspx

When you navigate to this URL you will see the section to select a template:

Now as this is open in google chrome right click on your template and click ‘Inspect Element’

You will need to expand the following code and press inspect element.

Once you have expanded the code you will receive the ID associated to the template.

So in my case ‘TestTemplate’ ID is “{6E9A9064-9174-4BEC-9A95-FEF99F7D1CFC}#TestTemplate

Keep in mind you must use the entire code including the name of the template itself and the “{ }”

Please follow and like us:

How to Create Multiple Subsites with Powershell From a CSV file

Sometimes it happens that you need to create Bulk subsites in a Sitecollection. And there is one thing what it-ers don’t like and that is manual work.

With this PowerShell script you can use a EXCEL.CSV to import as many sites as you want.

Step1

First of all you need to install the SharePoint2013 Client Components SDK.

http://www.microsoft.com/en-au/download/details.aspx?id=35585

Step2

The next step is to start up powershell ISE as a Administrator.

Now we need to make a connection to you Office365 admin Tenant with the following command

connect-SPOservice https://tenantname.admin.sharepoint.com

subsite1

Fill in your Office365 administrator credentials and press OK.

Now you are connected to you SharePoint tenant.

Step 3

And we can start editing the script to import the CSV.

Copy the following script in your Powershell script pane.

$csvLocation = “C:\Installt\sites.csv
$template = “template
$siteUrl = “https://tenant.sharepoint.com/sites/sitecollection
$username = “youraccount@tenant.nl”#yourpassword
Add-Type -Path “c:\Microsoft.SharePoint.Client.dll”
Add-Type -Path “c:\Microsoft.SharePoint.Client.Runtime.dll”

$password = Read-Host -Prompt “Enter password” -AsSecureString
$ctx = New-Object Microsoft.SharePoint.Client.ClientContext ($siteUrl)
$credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
$ctx.Credentials = $credentials
$csv = Import-Csv $csvLocation

ForEach ($site in $csv) {
$site = $($site.collumname of CSV)
$webCreationInformation = New-Object Microsoft.SharePoint.Client.WebCreationInformation
$webCreationInformation.Url = $site
$webCreationInformation.Title = $site
$webCreationInformation.WebTemplate = $template
$newWeb = $ctx.Web.Webs.Add($webCreationInformation)
$newWeb.ResetRoleInheritance()
$ctx.Load($newWeb)
$ctx.ExecuteQuery()

Write-Host “Site created:” $newWeb.Title ” at: ” $siteUrl “/” $newWeb.Url
}

Now you probably wonder what you need top fill in at Template. You can choos a custom template or you can choose one of the template  from the site bellow.

SharePoint online Template codes overview

In the next couple of days i will create another blog about this subject where i show you how to create a Custom template and how you can get the template code of your custom template.

Good luck and don’t hesitate to ask me question about this subject.

Please follow and like us:

How to delete a SharePoint online site with SharePoint Online Management Shell

Connect to your SharePoint Online tenant with the SharePoint Online Management Shell.

Start -> All Programs -> SharePoint Online Management Shell then type:

Import-Module Microsoft.Online.SharePoint.PowerShell

When the Sharepoint online management shell is open and the module is imported we want to connect to our Tenant.

Connect-SPOService
-Url
https://tenant-admin.sharepoint.com
-Credential
username@yourtenant.onmicrosoft.com

When you are connected the first thing to do is run a Get-SPOSite | select URL

This will get u a list of all SharePoint Online Site Collections

022114_0357_removingash1

Now we have all the site collections choose your site collection, to remove the site collection type:

Remove-SPOSite https://tenant.sharepoint.com/sites/siteyouwanttoremove

Once that’s completed the Site Collection will be removed and be put in the Site Collection Recycle Bin for 90 days

Please follow and like us:

Use the latest Features of Office 365 and SharePoint online

Office 365 band SharePoint Online continues to develop and grow this means there are updates coming out everyday, week or month.

Microsoft offers the ability to turn on ‘Preview Features’, Preview Features are the latest changes that haven’t been released yet.

So How do I enable the preview features?

Easy, navigate to your admin tenant (https://yourtenant-admin.sharepoint.com)

preview1

Click Settings, scroll most of the page down and you will see a section called ‘Preview Features’ .

Enable the feature and click OK

preview2

Once done the latest Preview features should be available to you.

Learn more about Preview Features here

Preview Features Office365

You can also enable the preview features of Office365. This will enable lots of preview feutures like (Sway, Delve, and office 2016).

To enable these go to your admin tentant (https://yourtenant-admin.sharepoint.com).

update2

Next klik on service settings and select updates.update3

Now you have the option First Release. You can set this on entire company or you can set up a couple of super users to test with the preview features.

Enjoy your new features.

Please follow and like us:

How to hide the OneDrive Synclink from Navigation and Library’s

A common question that I am asked on a daily basis is how can we hide ‘One Drive’ or ‘Newsfeed’ from the Top Navigation bar?

Well Thanks to an update a few month’s back it’s now extremely simple to do so:

Browse to:

https://companyname-admin.sharepoint.com/_layouts/15/online/TenantSettings.aspx

HideOneDrive

Scroll down to the bottom of your page  Save your changes and you are done

You can also remove Onedrive sync fuctionality from a Document library or another app.

Go to the sitesettings of the library you are in.

3

Select Search and offline availability. And change the Download to offline clients to NO.

searc

offline

Please follow and like us: