How to set up custom actions using the Microsoft Graph API

  • Last update on March 28th, 2025

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 Entra ID and MSOnline cmdlets

Microsoft has announced an end-of-life date for Azure AD and MSOnline cmdlets on March 31, 2025.  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.