Skip to content

Commit 8235e12

Browse files
authored
Merge pull request #2402 from SteveMutungi254/patch-4
Update Get-MgBetaServicePrincipal.md with specific permissions
2 parents 7dd9240 + cf47740 commit 8235e12

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Applications/beta/examples/Get-MgBetaServicePrincipal.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ SignInAudience : AzureADMultipleOrgs
1717

1818
This example retrieves all service principals from the directory.
1919

20-
To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference).
20+
To learn about other permissions for this resource, see the [Application permissions reference](/graph/permissions-reference#applicationreadall).
2121

22-
To consent to any of these permissions run `Connect-MgBetaGraph -Scopes Permission`. For example, `Connect-MgBetaGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
22+
To consent to these permissions run `Connect-MgBetaGraph -Scopes Permission`. For example, `Connect-MgBetaGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
2323

2424
### Example 2: Get the service principal by display name
2525

@@ -36,9 +36,9 @@ SignInAudience : AzureADMultipleOrgs
3636

3737
This example gets the service principal by display name.
3838

39-
To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference).
39+
To learn about other permissions for this resource, see the [Application permissions reference](/graph/permissions-reference#applicationreadall).
4040

41-
To consent to any of these permissions run `Connect-MgBetaGraph -Scopes Permission`. For example, `Connect-MgBetaGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
41+
To consent to these permissions run `Connect-MgBetaGraph -Scopes Permission`. For example, `Connect-MgBetaGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
4242

4343
### Example 3: Get a count of the service principals
4444

@@ -54,11 +54,11 @@ Id DisplayName
5454
020ada9b-60b7-436f-8f00-22b198c2996a O365SBRM Service 9d06afd9-66c9-49a6-b385-ea7509332b0b AzureADMultipleOrgs Microsoft Service
5555
```
5656

57-
This example returns a list of all the service principals. $spCount variable contains the count of the objects in the result. Advanced query requires the ConsistencyLevel parameter set to `eventual` and the Count parameter in the command. For more information about *ConsistencyLevel* and *Count*, see [Advanced query capabilities on Azure AD directory objects](/graph/aad-advanced-queries).
57+
This example returns a list of all the service principals. $spCount variable contains the count of the objects in the result. The advanced query requires the ConsistencyLevel parameter set to `eventual` and the Count parameter in the command. For more information about *ConsistencyLevel* and *Count*, see [Advanced query capabilities on Azure AD directory objects](/graph/aad-advanced-queries).
5858

59-
To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference).
59+
To learn about other permissions for this resource, see the [Application permissions reference](/graph/permissions-reference#applicationreadall).
6060

61-
To consent to any of these permissions run `Connect-MgBetaGraph -Scopes Permission`. For example, `Connect-MgBetaGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
61+
To consent to these permissions run `Connect-MgBetaGraph -Scopes Permission`. For example, `Connect-MgBetaGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
6262

6363
### Example 4: Use -Filter and -Top to get five service principals with a display name that starts with 'a' including a count of returned objects
6464

@@ -75,11 +75,11 @@ Id DisplayName AppId
7575
1d322ee1-7cf7-442a-b480-d6d4bbe6ec54 App Protection c6e44401-4d0a-4542-ab22-ecd4c90d28d7 AzureADMultipleOrgs Microsoft Services
7676
```
7777

78-
This example filters service principals whose display name starts with 'a' and continues to return the top 5. $spCount variable contains the count of the objects in the result before the *Top* filter. Advanced query requires the ConsistencyLevel parameter set to `eventual` and the Count parameter in the command. For more information about *ConsistencyLevel* and *Count*, see [Advanced query capabilities on Azure AD directory objects](/graph/aad-advanced-queries).
78+
This example filters service principals whose display name starts with 'a' and continues to return the top 5. $spCount variable contains the count of the objects in the result before the *Top* filter. The advanced query requires the ConsistencyLevel parameter set to `eventual` and the Count parameter in the command. For more information about *ConsistencyLevel* and *Count*, see [Advanced query capabilities on Azure AD directory objects](/graph/aad-advanced-queries).
7979

80-
To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference).
80+
To learn about other permissions for this resource, see the [Application permissions reference](/graph/permissions-reference#applicationreadall).
8181

82-
To consent to any of these permissions run `Connect-MgBetaGraph -Scopes Permission`. For example, `Connect-MgBetaGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
82+
To consent to these permissions run `Connect-MgBetaGraph -Scopes Permission`. For example, `Connect-MgBetaGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
8383

8484
### Example 5: Use -Search to get service principals with display names that contain the letters 'Team' including a count of returned objects
8585

@@ -98,8 +98,8 @@ Id DisplayName
9898
349be45f-663d-428e-bdab-b4ac26393614 Microsoft Teams AuthSvc a164aee5-7d0a-46bb-9404-37421d58bdf7 AzureADMultipleOrgs Microsoft Services
9999
```
100100

101-
This example returns all service principals whose display name contains the word 'team'. $spCount variable contains the count of the objects in the result. Advanced query requires the ConsistencyLevel parameter set to `eventual` and the Count parameter in the command. For more information about *ConsistencyLevel* and *Count*, see [Advanced query capabilities on Azure AD directory objects](/graph/aad-advanced-queries).
101+
This example returns all service principals whose display name contains the word 'team'. $spCount variable contains the count of the objects in the result. The advanced query requires the ConsistencyLevel parameter set to `eventual` and the Count parameter in the command. For more information about *ConsistencyLevel* and *Count*, see [Advanced query capabilities on Azure AD directory objects](/graph/aad-advanced-queries).
102102

103-
To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference).
103+
To learn about other permissions for this resource, see the [Application permissions reference](/graph/permissions-reference#applicationreadall).
104104

105-
To consent to any of these permissions run `Connect-MgBetaGraph -Scopes Permission`. For example, `Connect-MgBetaGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
105+
To consent to these permissions run `Connect-MgBetaGraph -Scopes Permission`. For example, `Connect-MgBetaGraph -Scopes Application.Read.All, Application.ReadWrite.All`.

0 commit comments

Comments
 (0)