How to set up custom actions using the Microsoft Graph API

  • Last update on November 27th, 2023

CoreView supports custom actions through the use of the Graph API.  

We have integrated the Graph API PowerShell SDK into the CoreView platform, allowing you to create custom scripts that can be executed as management actions or as part of workflows.   

If you are not familiar with the Graph API, Microsoft has provided an excellent resource mapping commands in the MSOnline and Azure AD cmdlets to Graph cmdlets: Find Azure AD and MSOnline cmdlets in Microsoft Graph PowerShell.  

In each script, you have to invoke the 

Refresh-CVGraphToken

function as the first line

Example to create a Security Group:

Original:

New-MsolGroup -DisplayName 'Test Group'

With Graph API:

Refresh-CVGraphToken
New-MgGroup -DisplayName 'Test Group' -MailEnabled:$False  -MailNickName 'testgroup' -SecurityEnabled

Configuration

Before submitting your first custom action against the Graph API, please contact support to enable this module for your tenant. It is not enabled by default.  

 

Once support has this enabled, follow our guide to configure Graph Management.

Note regarding Azure AD and MSOnline cmdlets

Microsoft has announced an end-of-life date for Azure AD and MSOnline cmdlets on March 30, 2024.  You will need to replace any custom actions you have against these cmdlets.  Please ensure they are not being used in any workflows to prevent any disruption to your automated processes.