Skip to content

Commit 60988a5

Browse files
authored
Merge pull request #109425 from petetian/patch-2
Update how-to-manage-azure-ad-users.md
2 parents 60a12fd + e236d0c commit 60988a5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

articles/postgresql/flexible-server/how-to-manage-azure-ad-users.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ select * from pgaadauth_list_principals(true);
6464
## Create a role using Azure AD principal name
6565

6666
```sql
67-
select * from pgaadauth_create_principal('[email protected]', false, false);
67+
select * from pgaadauth_create_principal('<roleName>', <isAdmin>, <isMfa>);
68+
69+
For example: select * from pgaadauth_create_principal('[email protected]', false, false);
6870
```
6971

7072
**Parameters:**
@@ -77,15 +79,17 @@ select * from pgaadauth_create_principal('[email protected]', false, false);
7779
## Create a role using Azure AD object identifier
7880

7981
```sql
80-
select * from pgaadauth_create_principal_with_oid('accounting_application', '00000000-0000-0000-0000-000000000000', 'service', false, false);
82+
select * from pgaadauth_create_principal_with_oid('<roleName>', '<objectId>', '<objectType>', <isAdmin>, <isMfa>);
83+
84+
For example: select * from pgaadauth_create_principal_with_oid('accounting_application', '00000000-0000-0000-0000-000000000000', 'service', false, false);
8185
```
8286

8387
**Parameters:**
8488
- *roleName* - Name of the role to be created.
8589
- *objectId* - Unique object identifier of the Azure AD object:
8690
- For **Users**, **Groups** and **Managed Identities** the ObjectId can be found by searching for the object name in Azure AD page in Azure portal. [See this guide as example](/partner-center/find-ids-and-domain-names)
8791
- For **Applications**, Objectid of the corresponding **Service Principal** must be used. In Azure portal the required ObjectId can be found on **Enterprise Applications** page.
88-
- *objectType* - Type of the Azure AD object to link to this role.
92+
- *objectType* - Type of the Azure AD object to link to this role: service, user, group.
8993
- *isAdmin* - Set to **true** if when creating an admin user and **false** for a regular user. Admin user created this way has the same privileges as one created via portal or API.
9094
- *isMfa* - Flag if Multi Factor Authentication must be enforced for this role.
9195

0 commit comments

Comments
 (0)