Excel Add-In for Microsoft Office 365

Build 25.0.9434

AssignLicense

Assigns or removes Microsoft 365 subscriptions for a user and enables or disables specific service plans within those subscriptions.

Input

Name Type Required Description
UserID String False Identifier of the user to whom the license is assigned. Leave blank to assign the license to the currently authenticated user.
UserPrincipalName String False User principal name (UPN) of the user to whom the license is assigned. Leave blank to assign the license to the currently authenticated user.
AddLicenseSkuId String False Globally Unique Identifier (GUID) of the license SKU to be added to the user.
DisabledPlans String False Comma-separated list of plan identifiers to disable within the license, such as 6fd2c87f-b296-42f0-b197-1e91e994b900, 1f2f344a-700d-42c9-9427-cf6a4d3fdf28.
RemoveLicenses String False Comma-separated list of license GUIDs to remove from the user, such as 76b8cfd1-3de8-4a73-9fb6-dc0c50e2b2f3, b2307a39-3b5c-44db-96f5-1a045c007cb9.

Result Set Columns

Name Type Description
Status String Indicates whether the stored procedure completed successfully or returned an error.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434