Microsoft Graph PowerShell コマンドレットでセルフサービス サインアップを制限する手順について

Yayoi.T 0 Reputation points
2024-01-25T05:11:24.4533333+00:00

以下の内容は確認しています。 https://jpdynamicscrm.github.io/blog/powerplatform/How-to-block-free-and-trial-licenses/ Power Automate、Power Apps の無償版・試用版を利用不可にするMsolコマンドは2024/3/31で廃止となるようです。 以下のコマンドは、Microsoft Graph PowerShellコマンドで"Set-MsolCompanySettings" に代わるコマンドレットとして、Microsoft Graph PowerShell には、"Update-MgOrganization" または "Update-MgPolicyAuthorizationPolicy" のご用意があるようですが、使い方がよくわかりません。 以下のコマンドがGraphになった場合のコマンドレットを教えてください。

▽ 2-1. Microsoft 365 テナントに未登録のユーザーに対してのみ、セルフサービス サインアップ機能を禁止するコマンドレット [コマンドレット] Set-MsolCompanySettings -AllowEmailVerifiedUsers $False ▽ 2-2. 既存ユーザー および、未登録のユーザーの両方に対して、セルフサービス サインアップ機能を禁止するコマンドレット [コマンドレット] Set-MsolCompanySettings -AllowAdHocSubscriptions $False

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,448 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,329 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 34,271 Reputation points Microsoft Vendor
    2024-01-26T03:45:16.63+00:00

    Hi Yayoi.T

    You can use

    Update-MgPolicyAuthorizationPolicy -AllowEmailVerifiedUsersToJoinOrganization:$false
    

    and

    Update-MgPolicyAuthorizationPolicy -AllowedToSignUpEmailBasedSubscriptions:$false
    

    instead. The Microsoft Graph PowerShell cmdlets equivalents for MSOnline can be found here.

    https://learn.microsoft.com/en-us/powershell/microsoftgraph/azuread-msoline-cmdlet-map?view=graph-powershell-1.0

    Use the information in this article to plan the migration of your applications to Microsoft Graph PowerShell.

    https://learn.microsoft.com/en-us/powershell/microsoftgraph/migration-steps?view=graph-powershell-1.0

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments