MS GRAPH

Change source of authority (SOA) for Groups (Preview)

Change source of authority (SOA) for Groups (Preview)

Hi All,

Recently i published an Article about the Preview of the Change of authority for the Exchange Attributes Change source of authority (SOA) for Exchange Attributes (Preview)

In this Article i will show you the Preview for changing the source of authority (SOA) for Groups.

In an Enterprise Evironement, typically Users and Groups are Synced with Entra Connect or Cloud Sync to Entra ID.

PSMSALNet 0.1.2 has been released

PSMSALNet 0.1.2 has been released

Hi All,

A few days ago, a new version of PSMSALNet has been released

-PowerShell Gallery PSMSALNet 0.1.2

I’ve checked the GitHub Changes and found that there has only be changed one Parameter

I am using the new PSResourceGet here instead of the PowerShellGet commands.

Show installed Versions and what’s available in PowerShell Gallery.

Get-InstalledPSResource -Name PSMSALNet -Scope CurrentUser
Find-PSResource -Name PSMSALNet

Uninstall the Module with PSResourceGet failed.

Uninstall-PSResource -Name PSMSALNet -Scope CurrentUser

Microsoft.Graph PowerShell Modules 2.30.0 released

Microsoft.Graph PowerShell Modules 2.30.0 released

Hi All,

A few Hors ago, Microsoft has released the Version 2.30.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules.

Release Notes

  • [v2] Manually update openApi docs
  • [v2] Examples Update
  • [v2] TokenLifetimePolicies are now referenceable through ServicePrinciples

I am using the new PSResourceGet here instead of the PowerShellGet commands.

Show installed Versions and what’s available in PowerShell Gallery

Get-InstalledPSResource -Name Microsoft.Graph -Scope CurrentUser
Get-InstalledPSResource -Name Microsoft.Graph.Beta -Scope CurrentUser
Find-PSResource -Name Microsoft.Graph
Find-PSResource -Name Microsoft.Graph.Beta

Controlling Guest Access to your M365 Groups / Teams

Controlling Guest Access to your M365 Groups / Teams

Hi All,

Recently a collegue at work made me aware of the following Article, that describes how you can prevent Guest Users to M365/Teams. You can configure that on Tenant Level or on individual M365 Group Level.

PowerShell

Let’s check out these Settings with PowerShell

###############################################################################
# Connect Microsoft Graph
###############################################################################
Connect-MgGraph -Scopes GroupSettings.ReadWrite.All, Group.ReadWrite.All, User.Read.All -NoWelcome

Microsoft.Graph PowerShell Modules 2.29.1 released

Microsoft.Graph PowerShell Modules 2.29.1 released

Hi All,

A few Hors ago, Microsoft has released the Version 2.29.1 of Microsoft.Graph and Microsoft.Graph.Beta Modules.

Release Notes

  • not yet released

I am using the new PSResourceGet here instead of the PowerShellGet commands.

Show installed Versions and what’s available in PowerShell Gallery

Get-InstalledPSResource -Name Microsoft.Graph -Scope CurrentUser
Get-InstalledPSResource -Name Microsoft.Graph.Beta -Scope CurrentUser
Find-PSResource -Name Microsoft.Graph
Find-PSResource -Name Microsoft.Graph.Beta

Uninstalling the old Microsoft.Graph Modules.

Microsoft.Graph PowerShell Modules 2.29.0 released

Microsoft.Graph PowerShell Modules 2.29.0 released

Hi All,

A few Hors ago, Microsoft has released the Version 2.29.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules.

Release Notes

  • Remove WindowsPrivacyAccessControl from module generation
  • fix specific directive files
  • [v2] Weekly OpenApiDocs Refresh

I am using the new PSResourceGet here instead of the PowerShellGet commands.

Show installed Versions and what’s available in PowerShell Gallery

Get-InstalledPSResource -Name Microsoft.Graph -Scope CurrentUser
Get-InstalledPSResource -Name Microsoft.Graph.Beta -Scope CurrentUser
Find-PSResource -Name Microsoft.Graph
Find-PSResource -Name Microsoft.Graph.Beta

Send Mail with Attachment via Microsoft Graph

Send Mail with Attachment via Microsoft Graph

Hi All,

I had to debug an Application that sends a Mail with an Attachment via Graph API. I’ve created this Small Script to Test the Functionality.

Entra Application

You need an Entra Application.

Entra Application:

Certificate Authentication:

Permissions:

  • Application: Mail.ReadWrite
  • Application: Mail.Send

Application Access Policy

I’ve written a whole Article Application Access Policy in Exchange Online

Connect-ExchangeOnline -ShowBanner:$False
Get-DistributionGroup -Identity PostmasterGraphRestriction | fl DisplayName, PrimarySmtpAddress, ExternalDirectoryObjectId
Get-DistributionGroupMember -Identity PostmasterGraphRestriction | fl DisplayName, PrimarySmtpAddress,ExternalDirectoryObjectId

Export Group Membership of a User in AD and Entra

Export Group Membership of a User in AD and Entra

Hi All,

Recently i wanted to export the Groups of a User. Here is some code i used for Active Directory and Entra ID.

Active Directory

First let’s look into Active Directory. We can use the Get-ADUser commandlet and specify the “MemberOf” Property

###############################################################################
# AD GroupMember
###############################################################################
$SamAccountName = "m.muster"
$DomainController = (Get-ADDomainController).HostName
$User = Get-ADUser -Identity $SamAccountName -Properties "Memberof" -Server $DomainController
$Groups = $User.MemberOf
$Groups

After sime String Magic we have the GroupName

The diffrence between Managed and Federated Domain

The diffrence between Managed and Federated Domain

Hi All,

In Entra Id there are fundamentally three diffrent Identity Models

  • Cloud Identity (Cloud Only Accounts)
  • Syncronized Identity / Hybrid Identity (Syncronized with Entra Connect Sync or Cloud Sync from OnPrem Active Directory with password sync)
  • Federated Identity (Like Syncronized Identity but without password sync - Authentication happens on the Federation Server and requrires a Trust between Entra and the Federation Service)

Image Source: Choosing a sign-in model for Office 365

Microsoft.Graph PowerShell Modules 2.28.0 released

Microsoft.Graph PowerShell Modules 2.28.0 released

Hi All,

A few days ago, Microsoft has released the Version 2.28.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules.

Release Notes

  • No Release Notes available

I am using the new PSResourceGet here instead of the PowerShellGet commands.

Show installed Versions and what’s available in PowerShell Gallery

Get-InstalledPSResource -Name Microsoft.Graph -Scope CurrentUser
Get-InstalledPSResource -Name Microsoft.Graph.Beta -Scope CurrentUser
Find-PSResource -Name Microsoft.Graph
Find-PSResource -Name Microsoft.Graph.Beta

Uninstalling the old Microsoft.Graph Modules.