AzureAD: Setup SSO to G-Suite for free, and govern access! (Google Apps)

Did you know Azure Active Directory can provide Single Sign-On (SSO) to G-Suite (Google Apps)? In this blog, we will explore how to set this up from both the Azure AD side and also the G-Suite side.

Once SSO is configured, consider creating policies for Conditional Access to govern how G-Suite is accessed (e.g. only from a managed device, specific network, monitor for threats of the credentials such as for sale on the dark web, etc). For more information on G-Suite and Azure AD integration for SSO, see Tutorial: Azure Active Directory integration with G Suite

Note: SSO for up to 10 apps comes with the free version of AzureAD. For additional capability, P1 or P2 may be required. See Azure Active Directory pricing for more information.

Important: Chromebooks can sign-in with Azure AD credentials, see this video! (and here for more information)

Also Important: Once SSO is enabled in G-Suite only Azure AD credentials will be authorized and all legacy credentials (i.e. G-Suite credentials) will not be authorized for sign-in. If the user is using a Windows 10 device that is AADJ, then they will not need to type in their password to access G-Suite, SSO from Win 10 will automatically be available.

Let’s begin!

Add G-Suite to Azure AD and configure it:

From within the Azure portal navigate to Azure Active Directory -> Enterprise Applications -> New Application and search for G Suite then click Add:


Once added, click Single Sign-on and click SAML

Edit the Basic SAML Configuration by clicking the pencil icon:

Configure using the following parameters:



Click Save. For User Attributes & Claims click the pencil icon:

 

Add a new claim:

Go back to the main SAML SSO configuration page, and download the base64 certificate for SAML Signing Certificate:

Copy the following URLs to a scratch pad, we’ll use these to configure G-Suite:

 

Setup G-Suite for SSO:

See this article for more information on configuring G-Suite for SSO. From within G-Suite navigate to Admin –> Security -> Setup SSO. Paste the URLs you copied in the last step, into the SSO configuration, upload the certificate you downloaded previously, check the box for use a domain specific issuer and then click Save:

 


Assign the user to G Suite

Back in the Azure portal, click Users & Groups from within the G-Suite Enterprise Application:


Add a new user to G-Suite:


Turn on Provisioning:

Click on Provisioning and go through the steps on the blade. Starting with changing Provisioning Mode to Automatic.


Then click Authorize and type in your G-Suite credentials to go through the authorization process. Grant consent:

Back in the Azure portal, click Save to save your provisioning configuration. Once saved, you can opt to enable automatic synchronization of identities from Azure AD to G-Suite by clicking On for Provisioning Status:

 

Side bar, I could configure self service for end-users!


 

Back in G-Suite, you will notice the assigned users will start to sync:

 

Time to test!

I’m going to navigate to http://mail.google.com/a/soseman.org:


Notice this will redirect to Azure Active Directory:


Notice it challenges me for multi-factor authentication!


And I respond to the challenge using my Apple Watch 🙂


Once authenticated, accept the terms and conditions:


Now, I’m logged in and ready to use G-Suite!


Browsing to myapps.microsoft.com – G-Suite is added to the launcher!

 


 

Conclusion:

As you can see, configuring Single Sign On for G-Suite using Azure Active Directory is a rather easy and simple process – and probably can be completed within 15 minutes or less. Once configured, don’t forget using Azure AD Conditional Access to govern how G-Suite is accessed, such as requiring a managed device (mobile or PC), monitoring the credentials for being compromised (impossible travel, up for sale on dark web, coming from atypical locations,etc), requiring MFA, and more!

Microsoft Teams: Protect against Phishing & Malware

Pretend for a moment that I am a marketing agency you just hired, and invite me as a guest to a team in Microsoft Teams to collaborate. What happens if that guest’s account gets compromised and a bad actor gains access to your team in Microsoft Teams? Your organization is having sensitive conversations there, uploading sensitive files, and if that data were to be publicly disclosed, could do damage to the organization. More importantly, a bad actor can post hyperlinks to “phishing” web sites, and upload malicious files into Microsoft Teams – from there users can open the links or run the files, posing a serious threat to your organization’s security.

How do we help to protect against phishing attacks and malicious files in Microsoft Teams? Office 365 Advanced Threat Protection is here to help. In fact, Office 365 ATP can also help to protect against phishing and malware in not just Microsoft Teams, but Exchange Online, SharePoint, and OneDrive! More information in the Service Description here.

To configure, once the appropriate licenses have been purchased and assigned to each user, open the Office 365 Security & Compliance Center (protection.office.com) -> Threat Management -> Policy and click on ATP Safe Attachments:

Check the box Turn on ATP for SharePoint, OneDrive and Microsoft Teams and click Save:

 


Now, when a malicious file is uploaded to Microsoft Teams, Office 365 ATP will perform a detonation of the file (following this process). Here we have files in Microsoft Teams, are they malicious?

If the file is indeed malicious, when the user attempts to execute the file in Microsoft Teams, they will receive the following message:

Safe Attachments stops the user in their tracks, and never gives them the opportunity to launch the file. This same behavior also occurs when the file is executed directly from SharePoint. If using Office 365 Alerts (in the Security & Compliance center), and alert can be configured to notify the admin that malware was uploaded to Microsoft Teams:

Here’s what the alert looks like:

(Note, if using Microsoft Cloud App Security an SMS notification can be sent, and MCAS also offers integration into your SIEM.)

What about phishing links in Microsoft Teams? If the ATP Safe Links policy is correctly configured (more information here), then when a phishing hyperlink is posted, the user will receive a blocking message when attempting to click on the hyperlink. Let’s take a loot at this below, here’s a hyperlink in a team conversation in Microsoft Teams:

When the user clicks on the link, ATP Safe Links and the Intelligent Security Graph goes into action to provide protection. ATP recognized the website is malicious, and stops the user in their tracks, not giving them the opportunity to click through to the original website. (Although, that can be changed in the policy).

Conclusion:

Office 365 Advanced Threat Protection provides protection against advanced thread such as phishing and malware for not only your email in Office 365, but also Microsoft Teams! What if everyone had this enabled? The world might just be a safer place! Enjoy!

Leaving the org? Wipe Only Corporate Data from Native Mail App in iOS (Microsoft 365)

Wouldn’t it be nice if an employee leaves the organization, that you can remove only your corporate data from their iPad or iPhone, but yet leave all their personal data alone? It absolutely would, especially if that employee was using the native (built-in) mail app in iOS. Look no further, because Microsoft 365 has the capability to perform a selective wipe on the device and remove corporate data, including data from the native mail app.

So how is this possible?

Intune will remove data that is tied to your Azure Active Directory identity. So, if I am logged into the native mail app on my iPhone with my Azure AD credentials for my Office 365 mailbox, Intune associates that as “corporate data”. If the device is enrolled into Intune Mobile Device Management (MDM) and the selective wipe command is issued (or the user manually performs a selective wipe via the Company Portal App) then the Office 365 data will be removed from the native ail app.

What are the requirements for this to work?

  1. The iOS device is enrolled into Intune MDM.
  2. An Intune iOS Device Configuration Profile is configured and assigned to the user or device, that is pushing a mail profile.
  3. The user is signed into the native mail app using their Azure AD credentials to access their Office 365 Mailbox.
  4. iOS Enrollment has been properly configured in Intune and a iOS device compliance policy has been configured and assigned.
  5. User has an Office 365 Exchange Online Mailbox

How do I configure it?

This is really made possible by having a mail profile configured in the Device Configuration Profile in Microsoft Intune. Let’s take a look at how to do that. From within the Intune blade in the Azure Portal, select Device Configuration -> Profiles -> and create a new Profile for iOS platform with a profile type of Email:

Next, click Settings and configure the email profile. See my screenshot below of how I setup my email profile for Office 365 based on my organization’s requirements (note, your configuration parameters may be different). When finished click OK.

 

 

Click Save to save the email profile. Next, click Assignments and assign the new profile to All Users, or All Devices, or Selected Groups. For my environment, I am going to assign to a security group that sales and marketing employees belong to. When finished, click Save:

 

 

 

How do I test it?

Using my iPhone test device, I am going to enroll it into Intune MDM using the Company Portal App from the App Store. If you aren’t familiar with this process, see my blog: Intune: MDM Enrollment Experience (complete device management)

Important: Make sure the user or device that is enrolling, is a member of the security group above! Or the Device Configuration Policy was assigned to that user or device!

You may be prompted to enter the password for the Exchange account (Office 365):

 

After tapping Edit Settings and entering my password, I’m going to launch the native mail app, and notice my email profile is now configured and my mailbox is visible in the app:

 

 

Now, we need to perform the selective wipe and only remove the corporate data. This can be performed two ways either from the Azure portal or from the Company Portal App on the iOS device.

Important: Selective Wipe in Intune is referred to as Retire. More information on differences between Wipe and Retire can be found here.

From within Intune I am going to click my iOS device (Megan’s iPod Touch):

Then I will choose Retire and click Yes at the warning:

The Retire request will be submitted and the status will change to Pending:

Wait a few moments for the Retire command to be sent to the device, then on the iOS device launch the native mail app:

 

The corporate data (Office 365 mailbox) and cached email will be removed, and the app will be returned to the sign in screen:

 

Conclusion:

That’s it! While this is simple to setup, ensure you have met the requirements and that your mail profile in Intune has been properly configured and assigned. Note, if you are looking to perform the selective wipe or Retire on Android – this will require Android Enterprise. More information here.

Next time you present to a room of people, try this! (and look like a Rockstar…)

Can you see the projection screen in a meeting? If you can’t would you agree it encourages multi-tasking?

(This was originally posted to my LinkedIn Blog)

Have you ever sat through a training class, a sales presentation, or just a regular business meeting and struggled trying to see the content on the projector or TV screen? If you have (like me) you probably are more apt to multi-task like check email, browse social media or work on another project. Why is this? Because if you can’t see the screen, you aren’t able to focus your attention and will probably lose interest.

I can’t see the projection screen clearly, so my interest is elsewhere. Sorry.

Have you presented to a room of people and had this happen? During your presentation you notice people on their laptop or smartphone and it immediately makes you feel that what you have to say isn’t important to them and it takes a hit on your self-confidence. I’ve had this happen to me one too many times (of course, don’t take it personally), but I have found the secret sauce to aid in (hopefully) preventing this from happening and immediately add value to your presentation. You want your attendees to walk away thinking that was a good use of their time.

The next time you give a presentation to a room full of people, plug into the projector or TV screen as you normally would. However, consider adding one more step to that process and start a new meeting using your favorite virtual meetings application (i.e. Microsoft Teams, Skype for Business, WebEx, GoToMeeting, etc). Of course, I recommend Microsoft Teams as it’s the easiest method – and I’ll use that in my example below.

Share your desktop over Microsoft Teams in addition to showing on the projector/TV -your attendees will appreciate it…

By sharing your screen over a virtual meeting app, all of the meeting attendees will be able to see your content (PowerPoint, desktop,etc) with absolute clarity because it’s right in front of them on their computer screen (or smartphone/tablet…). Your attendees will appreciate it, especially those who are far from the projection screen such as the back row or end of the boardroom table.

So why do this?

  1. The main reason: your attendees, no matter where they are sitting, can see whatever you are sharing on your computer (PowerPoint, web browser, app, etc). They don’t have to squint at the projector. They will appreciate this (wouldn’t you?)
    1. It discourages your attendees from multi-tasking! (You can check this by walking around the room during your presentation/speaking and glancing down at computers. If you don’t walk around the room while presenting, consider it.)
    2. The attendees can take screen shots and add them to OneNote or their note taking application!
    3. Utilize the chat feature in Teams or the meeting app. Toss links to websites in there, document attachments and other content.
    4. Have attendees put questions in the chat – that becomes your parking lot for questions to follow up on later!
    5. You can now record the meeting and have full content in the recording (along with audio if you choose). Give to the attendees afterwards.
    6. It gets people talking about Microsoft Teams!

    WARNING: Don’t advertise ahead of time you are doing this, because people will not come to the meeting and will want to join at their desk or from home.

    It discourages multi-tasking, easier to see content, and adds immediate value to the presentation

    So how do I do this? Well, as mentioned before I use Microsoft Teams (hey, it’s included in Office 365 and there’s even a free version.) Consider it as it works PERFECT in a web browser for this). Let’s explore the process:

    Step 1, create the Teams meeting give it a name and invite one person (it can be a fake email, doesn’t matter). I’ll call mine “Screen Sharing for Meeting” and invite johndoe@contoso.com.

     


    Step 2, Create a short URL using bit.ly or other service This way, it will be super easy for your attendees to access the meeting. Right click on the Join Microsoft Teams Meeting hyperlink inside the body of the Teams meeting (blue text above in the picture) and select Copy. Browse to bit.ly and create a new short URL by pasting the Teams url in the box. Copy the shortened URL.

     


    Step 3, put the shortened
    URL in your PowerPoint deck as an intro slide. Create a new slide in your PowerPoint deck and right after your title slide, drop a slide in with the new shortened URL, like so the image below. Be sure to show this slide while your attendees are walking into the room.

 

 


Step 4, Join the Teams meeting and share your desktop or content. As you join the meeting, be sure to mute your mic! Also be sure to mute your speakers.

 


Step 5, have your attendees join the meeting. Remember, you DO NOT have to be on Teams to join a Teams meeting. The attendees will join as a guest, and takes seconds to do so. (no, you don’t need to invite them as a guest to your tenant/team) Instruct them to just use the web browser as it’s usually the easiest method (if they already have the Teams desktop app installed, fine). Remember, they can also do this on an Android, iPhone or iPad. As they join, mute their microphone or select Mute All in the meeting.

Now, just run the meeting as you normally would. Laptop plugged into projector and desktop shared over Microsoft Teams!

I’m curious, what are your thoughts on this? Have you tried this? Have you sat through one of my meetings where I did this (if so, what did you think)? Give this a try in your next meeting, you might be really surprised in the level of interest and interaction!

 


 

Block OneDrive Downloads and Audit OneDrive Activity! (SharePoint too!)

Do you have a business requirement to block the download of specific files or file types from OneDrive? What about detailed auditing to understand what files are downloaded or viewed? Well, today is your lucky day – because this is all possible with Microsoft security technology and takes minutes to create. I’m going to walk you through how to do this, and in return, make you look like an IT Rockstar to your organization!

Note: There are other methods to restrict those files from being synchronized using the OneDrive desktop client, we won’t cover those today however (but are accessible in the SharePoint Online Admin Portal)

IMPORTANT: Nothing is 100% secure and it’s all about defense in depth. If you want that extra ply in the tinfoil hat, I highly recommend protecting and encrypting those files with Azure Information Protection as that extra layer of protection.

Also, it’s important to note,the method below at the time of this writing is in public preview.

Background:

My organization, an engineering firm, designs buildings for their commercial and government clients. These design plans often contain additional documentation that are in the form of a .PDF and sometimes photos in the form of a .JPEG (or .jpg).

Scenario:

These .PDF and .JPEG files are highly confidential and thus we want to make sure they never leave OneDrive in Office 365 and can only be viewed in a web browser. In other words, we need to block the ability for an end-user to download these two file types from OneDrive. So, how do we do this?

Solution:

Azure Active Directory Conditional Access and Microsoft Cloud App Security Conditional Access App Control to the rescue! These two products are part of Microsoft 365 E5 or EMS E5 or my new favorite: Microsoft 365 E3 + Identity & Threat Protection. The two products that make up this solution are Azure Active Directory and Microsoft Cloud App Security.

Let’s take a look at how to do this!

Step 1: Create a Azure AD Conditional Access Policy

From within the Azure portal -> Azure Active Directory -> Conditional Access -> New Policy I am going to create a new policy. First, give it a name, “OneDrive Block JPEG and PDF”. Next, assign it to specific users or groups of users. For testing purposes I’m assigning to Adele Vance (IMPORANT: Don’t lock yourself out! Careful planning is required when assigning to all users).

 

 

Next, add Office 365 SharePoint Online as the application to be applied to:

 

 

Under Session, select Use Conditional Access App Control, then click Done.

Next, click Enable policy to enable the policy and click Create.

 

Step 2: Launch OneDrive (via portal.office.com)

Wait 15 minutes for the new Conditional Access policy to propagate. Next, open a new browsing session (inprivate or on another computer) and logon as the test user that was just assigned to. In my case, I am going to sign in to portal.office.com in an in-private session as Adele. Browse to OneDrive in the Office portal and open a file in the web browser. Sign out of this web browsing session when done.

Step 3: Configure Microsoft Cloud App Security

We now need to configure Microsoft Cloud App Security (CAS) and create the appropriate policies.

To start, validate that OneDrive is a connected application by browsing to http://portal.cloudappsecurity.com and navigating to Investigate -> Connected Apps. Notice OneDrive for Business will be listed and connected: (Yes, you can also connect CAS to G-Suite, Box, and other apps!)

 

Next, click on Conditional Access App Control apps and OneDrive for Business will also be displayed:

Step 4: Create the Session Policy in Microsoft Cloud App Security

Next, we need to create the policy that will provide the session control when Adele uses OneDrive in the Office 365 Portal. To do this navigate to Control -> Policies, click New Policy and select Session Policy.

 


 

Let’s give the policy a name and description:

 

Next, under Session control type select Control file download (with DLP). Under Activity source and activity filters configure configure them per the screenshot below

 

 

Scroll down (leave content inspection blank and don’t check the box) and under Actions select Block. OPTIONAL: Configure user email notification or customize block message. When finished at the bottom of the page click Create.

Step 5: Test the User Experience

Now it’s time to test and validate this is the behavior we want. Open a new web browsing session and login as the test user. In my case, I’m going to login to portal.office365.com using Adele Vance’s account in an in-private browser session.


 

Once signed in, navigate to OneDrive in the Office 365 Portal. When you click on OneDrive, notice the splash page indicating this site is being monitored!

 

 

 

 

Also, notice the address of the site. It’s being proxied through CAS.MS indicating this session is being controlled by Cloud App Security:

 

Click Continue to Microsoft OneDrive for Business

Notice I have two files, a .PDF and a .JPEG in the OneDrive folder:

 

Hover the cursor over the PDF and click the ellipses, and select Download

 

Notice, the file download is blocked with a splash message indicating it’s blocked!

 

Now, I know what you’re wondering, “Matt what’s that file it wants to save?” When I open that file, it’s just a warning:

 

From here, within the Cloud App Security Portal, I can audit the activity and receive additional details around this attempt:

Additional alerting can be generated, with an email or SMS notification sent. Imagine having CAS send an email to your ticket system so you can be notified of this violation? What about sending to your SIEM? Endless possibilities.

Conclusion:

As you can see, with a bit of an open mind and creativity, possibilities to build true security solutions that lead to a real business outcome, is entirely possible. The total time spent creating this solution was 10 minutes. Don’t forget to test (which obviously will add to the 10 minutes) all the scenarios for this. Questions? Let me know in the comments below!

Enjoy and help us make this world more secure! –Matt Soseman

Intune: Upgrade Windows Pro to Enterprise AUTOMATICALLY!

Do you have a bunch of Windows 10 Pro devices and would like upgrade them to Windows 10 Enterprise? Microsoft 365 (specifically Microsoft Intune) can help you!

Note: For more information please reference Deploy Windows 10 Enterprise licenses. The following is an example on how to do this with Intune (assuming appropriate licenses have been purchased and assigned).

First, create a Microsoft Intune configuration policy. In the Azure Portal navigate to Microsoft Intune -> Device Configuration -> Profiles. Click Create Profile

Next, create a new Windows 10 and later profile, with a type of Edition Upgrade. Click Settings

 

 


Click Edition Upgrade

In the field Edition to upgrade to select Windows 10 Enterprise. In the Product Key field type in the product key (i.e. MAK). Then click OK


Click OK to save the Edition Upgrade. Click OK again then click Create


Next, click Assignments in the Assign to menu select All Users & Devices then click Save

Note: Your assignments may be different per your organization’s requirements. This is only an example. You could also assign only the machines in question, or use a dynamic security group that queries on the device serial number,etc.


On a virtual machine with Windows 10 1803, install Windows 10 Pro:

Note: I’m showing you this, to demonstrate the upgrade. Ideally you would sign in as an Organizational Account in the OOBE when installing Windows. However, if I did that here, you wouldn’t see that I’m coming from Pro 🙂

Notice it’s Windows 10 Pro:

 

Join the machine to Azure AD to receive the Intune policy:

Reboot the machine and sign in with the user’s Azure AD credentials. Once signed in, open System Information and notice that Windows has been upgraded to Enterprise!

This can be verified in the Intune portal under Device Status for the configuration policy that was previously created:

I hope you found this helpful. Questions? Please let me know in the comments below! Enjoy!

Microsoft Teams: Share my iPhone/iPad screen in a meeting! (While on the beach…)

You’re in a conference call while at the airport on your iPhone, and the meeting starts to discuss that important PowerPoint slide or document. You say “I’ll have to show you when I get back to my desk”. It would be really nice if you could share it from your iPhone while in the meeting. Well – now you can, with Microsoft Teams!

Teams enables you to share the entire screen of your iOS device when in a Microsoft Teams meeting! Watch the below video to learn more! Enjoy!

Microsoft Teams: Blur my background! (Please…)

Have you been on a conference call where everyone turns on their video, except for you? If you’re like me, I don’t like to turn mine on because of the messy house, or just ugly office behind me. Well – Microsoft Teams has you covered. You can now blur your background when in a conference in Microsoft Teams! You can now use video, and not  worry about what’s behind you. Watch the below 90 second video to learn more!