Skip to content

Commit 44654a0

Browse files
Merge pull request #247259 from bhaimicrosoft/main
Updated directory-self-service-signup.md file
2 parents d29d50a + 7ce0dd4 commit 44654a0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

articles/active-directory/enterprise-users/directory-self-service-signup.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ For more information on Flow and Power Apps trial sign-ups, see the following ar
6969
These two parameters can be used in conjunction to define more precise control over self-service sign-up. For example, the following command allows users to perform self-service sign-up, but only if those users already have an account in Azure AD (in other words, users who would need an email-verified account to be created first can't perform self-service sign-up):
7070

7171
```powershell
72-
Set-MsolCompanySettings -AllowEmailVerifiedUsers $false -AllowAdHocSubscriptions $true
72+
Import-Module Microsoft.Graph.Identity.SignIns
73+
connect-MgGraph -Scopes "Policy.ReadWrite.Authorization"
74+
$param = @{
75+
allowedToSignUpEmailBasedSubscriptions=$true
76+
allowEmailVerifiedUsersToJoinOrganization=$false
77+
}
78+
Update-MgPolicyAuthorizationPolicy -BodyParameter $param
7379
```
7480

7581
The following flowchart explains the different combinations for these parameters and the resulting conditions for the tenant and self-service sign-up.
@@ -79,10 +85,10 @@ The following flowchart explains the different combinations for these parameters
7985
This setting's details may be retrieved using the PowerShell cmdlet Get-MsolCompanyInformation. For more information on this, see [Get-MsolCompanyInformation](/powershell/module/msonline/get-msolcompanyinformation).
8086

8187
```powershell
82-
Get-MsolCompanyInformation | Select AllowEmailVerifiedUsers, AllowAdHocSubscriptions
88+
Get-MgPolicyAuthorizationPolicy | Select-Object AllowedToSignUpEmailBasedSubscriptions, AllowEmailVerifiedUsersToJoinOrganization
8389
```
8490

85-
For more information and examples of how to use these parameters, see [Set-MsolCompanySettings](/powershell/module/msonline/set-msolcompanysettings).
91+
For more information and examples of how to use these parameters, see [Update-MgPolicyAuthorizationPolicy](/powershell/module/microsoft.graph.identity.signins/update-mgpolicyauthorizationpolicy?view=graph-powershell-1.0&preserve-view=true).
8692

8793
## Next steps
8894

0 commit comments

Comments
 (0)