Office 365: How to enable Azure AD service in a tenant!

As you know, one of the latest services added by Microsoft to Office 365 is the Azure AD. To use Azure AD in Office 365, you need to enable it in your Office 365 tenant and for doing this task I recommend you to read the following two articles that provide an overview about different approaches to enable Azure AD in Office 365:

Office 365: Como habilitar Azure AD en un tenant!

Como sabéis, uno de los últimos servicios añadidos por Microsoft a Office 365 es el de Azure AD. Para poder hacer uso del mismo, es necesario habilitarlo en nuestro tenant y para ello os recomiendo los siguientes dos artículos en los que se detallan distintas posibilidades para conseguirlo:

SharePoint & Office 365: Summary of PowerShell scripts published in the TechNet Scriptcenter Gallery!

This time, I wanted to make a summary of all the PowerShell scripts for SharePoint and Office 365 that have been published in the Microsoft TechNet Scripts Center Gallery. As you can see in the summary, I have tried to group the scripts by a certain category.

SharePoint Administration

Upagrade to SharePoint 2013

Auditing

Backup and Restore

Search

SharePoint Solutions Deployment

CSOM for SharePoint OnPremises

Working with lists

Branding

Office 365

SharePoint & Office 365: Resumen de scripts PowerShell publicados!

En esta ocasión, os quería dejar un resumen de todos los script PowerShell para SharePoint y Office 365 que he ido publicando en la galería de scripts de Microsoft TechNet. Como podéis ver en el resumen, he tratado de agrupar los scripts por categorías.

Administración de SharePoint

Actualización a SharePoint 2013

Auditoría

Copias de Seguridad

Búsquedas

Despliegue de Soluciones

Uso del CSOM en SharePoint OnPremises

Trabajo con Listas

Branding

Office 365

[Eventos]: Vuelve BilboStack, el mejor evento sobre desarrollo web!

Pues eso, que en aproximadamente un mes tendrá lugar una nueva edición del evento BilboStack en Bilbao y en el que participarán un montón de cracks del mundillo del desarrollo web como Asire Marqués, Ibón Landa, Eduard Tomás y otros grandes. En esta nueva edición, y según me ha estado contando Ibón Landa, quieren que el evento suponga un record de asistencia para aprovechar además que en esta ocasión se contarán con salas de mayor capacidad gracias a la colaboración de la Universidad de Deusto. Os comparto toda la información sobre el evento y os animo a que participéis:

image

SharePoint Online: How to deal with permissions and permissions levels using the Client Side Object Model and PowerShell (II)!

Continuing the series of posts about how to work with permissions and permission levels in SharePoint Online using the client side object model, this time I am sharing a PowerShell script about how to get the list of all SharePoint groups in a SharePoint Online site using the Client Side Object Model instead of Get-SPOSiteGroup command.

   1: ############################################################################################################################################

   2: # Script that allows to get all the SharePoint groups in a SharePoint Online Site

   3: # Required Parameters:

   4: #  -> $sUserName: User Name to connect to the SharePoint Online Site Collection.

   5: #  -> $sPassword: Password for the user.

   6: #  -> $sSiteCollectionUrl: SharePoint Online Site

   7: ############################################################################################################################################

   8:  

   9: $host.Runspace.ThreadOptions = "ReuseThread"

  10:  

  11: #Definition of the function that gets all the SharePoint groups in a SharePoint Online site

  12: function Get-SPOSharePointGroupsInSite

  13: {

  14:     param ($sSiteColUrl,$sUsername,$sPassword)

  15:     try

  16:     {    

  17:         Write-Host "----------------------------------------------------------------------------"  -foregroundcolor Green

  18:         Write-Host "Getting all Groups in a SharePoint Online Site" -foregroundcolor Green

  19:         Write-Host "----------------------------------------------------------------------------"  -foregroundcolor Green

  20:      

  21:         #Adding the Client OM Assemblies        

  22:         Add-Type -Path "<CSOM_Path>\Microsoft.SharePoint.Client.dll"

  23:         Add-Type -Path "<CSOM_Path>\Microsoft.SharePoint.Client.Runtime.dll"

  24:  

  25:         #SPO Client Object Model Context

  26:         $spoCtx = New-Object Microsoft.SharePoint.Client.ClientContext($sSiteColUrl) 

  27:         $spoCredentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($sUsername, $sPassword)  

  28:         $spoCtx.Credentials = $spoCredentials 

  29:  

  30:         #Root Web Site

  31:         $spoRootWebSite = $spoCtx.Web

  32:         #Collecction of Sites under the Root Web Site

  33:         $spoSites = $spoRootWebSite.Webs

  34:  

  35:         #Loading Operations

  36:         $spoGroups=$spoCtx.Web.SiteGroups

  37:         $spoCtx.Load($spoGroups)

  38:         $spoCtx.ExecuteQuery()

  39:         

  40:         #We need to iterate through the $spoGroups Object in order to get individual Group information

  41:         foreach($spoGroup in $spoGroups){

  42:             $spoCtx.Load($spoGroup)

  43:             $spoCtx.ExecuteQuery()

  44:             Write-Host $spoGroup.Title

  45:         }

  46:  

  47:         $spoCtx.Dispose()

  48:     }

  49:     catch [System.Exception]

  50:     {

  51:         write-host -f red $_.Exception.ToString()   

  52:     }    

  53: }

  54:  

  55: #Required Parameters

  56: $sSiteColUrl = "https://<SPO_SiteUrl>" 

  57: $sUsername = "<SPOUserName>" 

  58: #$sPassword = Read-Host -Prompt "Enter your password: " -AsSecureString  

  59: $sPassword=convertto-securestring "<SPO_Password>" -asplaintext -force

  60:  

  61: Get-SPOSharePointGroupsInSite -sSiteColUrl $sSiteColUrl -sUsername $sUsername -sPassword $sPassword

You can download the PowerShell script from the following download page in the Script Center Gallery in TechNet: How to get all the SharePoint Groups in a SharePoint Online Site. Finally, bellow you can see the screenshot you get when you execute the script in the SharePoint Online Management Shell:

References:

SharePoint Online: Como trabajar con permisos y niveles de permisos con el modelo de objetos en cliente y PowerShell(II)!

Siguiendo con la serie de posts sobre como trabajar con permisos y niveles de permisos haciendo uso del modelo de objetos en cliente, en esta ocasión os dejo como obtener el listado de grupos de SharePoint de un sitio de SharePoint Online utilizando PowerShell utilizando el modelo de objetos en cliente en lugar del comando Get-SPOSiteGroup.

   1: ############################################################################################################################################

   2: # Script that allows to get all the SharePoint groups in a SharePoint Online Site

   3: # Required Parameters:

   4: #  -> $sUserName: User Name to connect to the SharePoint Online Site Collection.

   5: #  -> $sPassword: Password for the user.

   6: #  -> $sSiteCollectionUrl: SharePoint Online Site

   7: ############################################################################################################################################

   8:  

   9: $host.Runspace.ThreadOptions = "ReuseThread"

  10:  

  11: #Definition of the function that gets all the SharePoint groups in a SharePoint Online site

  12: function Get-SPOSharePointGroupsInSite

  13: {

  14:     param ($sSiteColUrl,$sUsername,$sPassword)

  15:     try

  16:     {    

  17:         Write-Host "----------------------------------------------------------------------------"  -foregroundcolor Green

  18:         Write-Host "Getting all Groups in a SharePoint Online Site" -foregroundcolor Green

  19:         Write-Host "----------------------------------------------------------------------------"  -foregroundcolor Green

  20:      

  21:         #Adding the Client OM Assemblies        

  22:         Add-Type -Path "<CSOM_Path>\Microsoft.SharePoint.Client.dll"

  23:         Add-Type -Path "<CSOM_Path>\Microsoft.SharePoint.Client.Runtime.dll"

  24:  

  25:         #SPO Client Object Model Context

  26:         $spoCtx = New-Object Microsoft.SharePoint.Client.ClientContext($sSiteColUrl) 

  27:         $spoCredentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($sUsername, $sPassword)  

  28:         $spoCtx.Credentials = $spoCredentials 

  29:  

  30:         #Root Web Site

  31:         $spoRootWebSite = $spoCtx.Web

  32:         #Collecction of Sites under the Root Web Site

  33:         $spoSites = $spoRootWebSite.Webs

  34:  

  35:         #Loading Operations

  36:         $spoGroups=$spoCtx.Web.SiteGroups

  37:         $spoCtx.Load($spoGroups)

  38:         $spoCtx.ExecuteQuery()

  39:         

  40:         #We need to iterate through the $spoGroups Object in order to get individual Group information

  41:         foreach($spoGroup in $spoGroups){

  42:             $spoCtx.Load($spoGroup)

  43:             $spoCtx.ExecuteQuery()

  44:             Write-Host $spoGroup.Title

  45:         }

  46:  

  47:         $spoCtx.Dispose()

  48:     }

  49:     catch [System.Exception]

  50:     {

  51:         write-host -f red $_.Exception.ToString()   

  52:     }    

  53: }

  54:  

  55: #Required Parameters

  56: $sSiteColUrl = "https://<SPO_SiteUrl>" 

  57: $sUsername = "<SPOUserName>" 

  58: #$sPassword = Read-Host -Prompt "Enter your password: " -AsSecureString  

  59: $sPassword=convertto-securestring "<SPO_Password>" -asplaintext -force

  60:  

  61: Get-SPOSharePointGroupsInSite -sSiteColUrl $sSiteColUrl -sUsername $sUsername -sPassword $sPassword

Podéis descargaros el script desde el siguiente enlace de la Galería de Scripts de TechNet: How to get all the SharePoint Groups in a SharePoint Online Site. Por supuesto, el resultado que se obtiene es el siguiente para un cierto sitio de SharePoint Online.

image

Referencias: