Share via


Microsoft.Graph.SchemaExtensions Module

Microsoft Graph PowerShell Cmdlets

Microsoft.Graph.SchemaExtensions Cmdlets

Cmdlet Description
Get-MgSchemaExtension

Get schemaExtension

Note

To view the beta release of this cmdlet, view Get-MgBetaSchemaExtension

Get-MgSchemaExtensionCount

Get the number of the resource

Note

To view the beta release of this cmdlet, view Get-MgBetaSchemaExtensionCount

New-MgSchemaExtension

Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type. Schema extensions let you add strongly-typed custom data to a resource. The app that creates a schema extension is the owner app. Depending on the state of the extension, the owner app, and only the owner app, may update or delete the extension. See examples of how to define a schema extension that describes a training course, use the schema extension definition to create a new group with training course data, and add training course data to an existing group.

Note

To view the beta release of this cmdlet, view New-MgBetaSchemaExtension

Remove-MgSchemaExtension

Delete the definition of a schema extension. Only the app that created the schema extension (owner app) can delete the schema extension definition, and only when the extension is in the InDevelopment state. Deleting a schema extension definition does not affect accessing custom data that has been added to resource instances based on that definition.

Note

To view the beta release of this cmdlet, view Remove-MgBetaSchemaExtension

Update-MgSchemaExtension

Update properties in the definition of the specified schemaExtension. Additive updates to the extension can only be made when the extension is in the InDevelopment or Available status. This means custom properties or target resource types cannot be removed from the definition, but new custom properties can be added and the description of the extension changed. The update applies to all the resources that are included in the targetTypes property of the extension. These resources are among the supporting resource types. For delegated flows, the signed-in user can update a schema extension as long as the owner property of the extension is set to the appId of an application the signed-in user owns. That application can be the one that initially created the extension, or some other application owned by the signed-in user. This criteria for the owner property allows a signed-in user to make updates through other applications they don't own, such as Microsoft Graph Explorer. When using Graph Explorer to update a schemaExtension resource, include the owner property in the PATCH request body.

Note

To view the beta release of this cmdlet, view Update-MgBetaSchemaExtension