Freigeben über


Using Azure Active Directory for Single Sign On with Yammer

This is a pretty interesting topic that I think is going to be gaining momentum moving forward. As many of you know, when you create a new o365 tenant you automatically get an Azure Active Directory (AAD) instance provisioned for you at the same time. For those of you who have purchased an Enterprise o365 tenant, you now also receive a Yammer network with it (NOTE: I'm not a licensing guy, I can't answer licensing questions, and there are different flavors of tenants and licenses that I can't and won't ever be able to explain). If you're familiar with Yammer, you also know that today it also has its own user directory. We typically will set up directory synchronization from an on premises Active Directory to Yammer to keep the directory up to date. For authentication though, if you want single sign on we usually suggest using ADFS if you're a Windows shop. Going forward though, Azure Active Directory is another alternative you can use.

The main reasons why you would want to use AAD instead of ADFS is one of time and money. If you use ADFS, then you are responsible for building out a highly-available ADFS infrastructure. That will mean 2 or more servers of any number of things: ADFS, ADFS proxy, reverse proxy, firewall, and/or load balancer. That can really add up when you think about the number of servers involved, the cost to acquire OS licenses, and the cost to patch, maintain and operate them. On the other hand, AAD takes care of all of that infrastructure for you, and is included with any o365 tenant. It's free up to about 500k users I think (again - I'm not a licensing guy so check if you are concerned). You can also just create an AAD instance with a regular Azure subscription.

So if you are convinced of the goodness of AAD for this purpose, the good news is getting it set up is relatively straight-forward. The steps you will want to do are:

  1. Add your on premise domain to your o365 subscription.

    1. Go to the o365 Admin pages and click on Domains

    2. Click on Add a Domain

    3. Follow the wizard to add your on premises domain to your o365 tenant

  2. Set up directory synchronization between your on premises Active Directory and o365

    1. Go to the o365 admin pages and click on Users and Groups, then AD synchronization set up

    2. Install AAD module for PowerShell

    3. Activate synchronization in tenant

    4. Install the dirsync tool and run

    5. After dirsync is completed, make at least one on premise user a Global Admin in o365

  3. Run the following PowerShell script using the AAD PS module:

Connect-MsolService
Import-Module MSOnlineExtended -Force
$replyUrl = New-MsolServicePrincipalAddresses –Address "https://saml.yammer.com/sp/ACS.saml2"
New-MsolServicePrincipal –ServicePrincipalNames @("yammer/sso") -DisplayName "Yammer Federation" -Addresses $replyUrl

You should see output afterwards that looks like this:

  4. Capture the AppPrincipalID from the output and provide that along with your domain name (i.e. contoso.com) to Yammer support, along with the rest of the documentation they request with the SSO checklist they have at https://success.yammer.com/integrations/single-sign-on/.

You should be good to go at that point, and can do all of your authentication completely in the cloud using AAD.

Comments

  • Anonymous
    January 01, 2003
    If I want to set up an Azure account with AAD and use that AAD with Yammer, do I need to set it up first or can I add Azure later and leverage the AAD I set up with O365?
  • Anonymous
    January 01, 2003
    Sorry @Joshua, I haven't done federation to Salesforce (yet) so I don't have anything to share.
  • Anonymous
    January 01, 2003
    The comment has been removed
  • Anonymous
    January 01, 2003
    Hey Tommy, Yammer and O365 user mapping is not a complete SSO solution so it doesn't annul the necessity of configuring Azure AD. Also, user mapping functionality has been temporarily disabled; check this out -http://community.office365.com/en-us/w/yammer/temporary-disablement-of-office-365-and-yammer-user-mapping.aspx
  • Anonymous
    January 01, 2003
    Massimo, It is not mandatory to have DirSync . DirSync comes into the picture only if you have existing users in your On-premise AD that you'd like to sync to your Office 365 tenant. Hope that helps?
  • Anonymous
    January 01, 2003
    Yes, this requires both dirsync and yammer dir sync because they are two different directories at this time.
  • Anonymous
    January 01, 2003
    The comment has been removed
  • Anonymous
    January 01, 2003
    The comment has been removed
  • Anonymous
    January 01, 2003
    thanks for sharing.
  • Anonymous
    January 01, 2003
    Hi, I'm trying to follow the above instructions but seem to be caught in a loop with Yammer support as they're asking for a metadata file which can be obtained from a URL, do you have any tips as to where I can find this URL? Cheers
  • Anonymous
    January 01, 2003
    Steve, this still requires both DirSync and Yammer Sync, correct?
  • Anonymous
    January 01, 2003
    The comment has been removed
  • Anonymous
    January 10, 2014
    Pingback from Thursday, January 9, 2014 on #WindowsAzure | Alexandre Brisebois
  • Anonymous
    January 15, 2014
    Is there anyway that you could post the instructions for configuring federation with Salesforce manually? I would like to configure it myself so that we could support the multiple SF orgs that we have.
  • Anonymous
    January 16, 2014
    So, if I also wanted SSO for all my Office365 services (Exchange, SharePoint Online, Lync), does the AAD support all of those as well, so I can effectively eliminate my ADFS 2.0 infrastructure? What are the PowerShell commands to get Office365 to use AAD instead of the typical commands for ADFS 2.0?This requires the password synchronization in the DirSync tool, correct?And one other question, with AAD and DirSync, if I disable an account in on-premises AD, I have to wait for a sync to occur before that account is unable to login to a service using AAD for authentication, correct? Rather than an immediate rejection if I was using ADFS.
  • Anonymous
    February 10, 2014
    Great post - thanks. You say "You should see output afterwards that looks like this:" but then I don't see the output. Is that my browser, or did you forget it? Also, you say in answer here that "this requires both dirsync and yammer dir sync because they are two different directories". Do you have a post about setting up Yammer Dir Sync? And just out of interest, could you live without it as long as you are prepared to invite users manually - or is that just absurd?
  • Anonymous
    March 05, 2014
    Great post! Is it really a requirement to have Dirsync for Office and Yammer enabled? I would like SSO between O365 and Yammer with AAD/ADFS using AAD Users. And if this is not possible, can you explain why this would not work? Thanks in advance!
  • Anonymous
    April 01, 2014
    I posted a while back regarding how to configure Yammer and Azure Active Directory (AAD) together so
  • Anonymous
    April 06, 2014
    I guess we need a paid Azure Tenant for using this functionality in an enterprise.
  • Anonymous
    April 25, 2014
    I'm curious - would it be possible to configure Yammer with SSO directly to AAD as shown here but without the on-premise DirSync for Yammer or AAD? It would be great if Yammer could share the credentials used for Office 365 (not on-prem). In my scenario I'm unable to configure AAD DirSync, but Yammer DirSync might be possible. Thank you!
  • Anonymous
    May 12, 2014
    Pingback from SSO with Yammer (Single Sign On para Yammer) | Sara Barbosa
  • Anonymous
    June 13, 2014
    Isnt this now built in to the service. http://blogs.office.com/2014/02/18/simplified-login-to-yammer-from-office-365/
  • Anonymous
    July 08, 2014
    Not sure I understood. Is it mandatory to have DirSync for Yammer/WAAD Federation?
  • Anonymous
    July 13, 2014
    Yes Israel, it helps! :-) Thank you very much!
  • Anonymous
    July 14, 2014
    is the Single Sign On with Yammer work with the ADFS on Windows Server 2012 R2??
  • Anonymous
    August 01, 2014
    Mike,
    Thanks for the post. I tried running your powershell script above, but get the following error message:


    New-MsolServicePrincipalAddresses : A positional parameter cannot be found
    that accepts argument 'â?Address https://saml.yammer.com/sp/ACS.saml2
    New-MsolServicePrincipal â?ServicePrincipalNames'.
    At D:tempYammer.ps1:3 char:13
    + $replyUrl = New-MsolServicePrincipalAddresses â?"Address
    "https://saml.yammer.co ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo : InvalidArgument: (:) [New-MsolServicePrincipalAd
    dresses], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Online.Adm
    inistration.Automation.NewServicePrincipalAddresses






  • Anonymous
    September 18, 2014
    The comment has been removed
  • Anonymous
    September 26, 2014
    The comment has been removed
  • Anonymous
    January 08, 2015
    m88 : http://m88en.com
    M88.com offer online sports games Asia, Sports Betting Asia, Sports Betting Sites Asia.
    m88asia : http://m88en.net
    Link to M88BET phone: m88en.com. – Register and Open Betting Account and Membership M88BET.
    m88bet : http://www.linkm88vip.com
    MANSION88 the house is one of the largest and most prestigious. Appeared quite early in the Asian market, the so-MANSION88 currently attracts more players.
    link m88 : http://m88wiki.com
    Home the M88 is the official sponsor of the football club in the Premier League
    Wish you happy with the new M88
    m88 casino online : http://m88free.com

    Modern Thai restaurant combines outstanding traditional cuisine and a subtle modern decor with a warm welcoming ambience. Thai Restaurants in Brisbane :http://www.watersidethainoodles.com.au , traveller reviews of Brisbane Thai restaurants and search by price, location, and more..