Skip to content

Commit a51a468

Browse files
authored
Merge pull request #2403 from SteveMutungi254/patch-5
Update Get-MgServicePrincipal.md to specific Application permissions
2 parents 23129d1 + 4976f6b commit a51a468

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/Applications/v1.0/examples/Get-MgServicePrincipal.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@ 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 the permissions for this resource, see the [Application permissions reference](/graph/permissions-reference#applicationreadall).
2121

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

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

2626
```powershell
2727
Connect-MgGraph -Scopes 'Application.Read.All'
2828
Get-MgServicePrincipal -Filter "DisplayName eq 'Power BI Service'" |
29-
Format-List Id, DisplayName,AppId, SignInAudience
29+
Format-List Id, DisplayName, AppId, SignInAudience
3030
3131
Id : 9518fb8f-8d9e-4aae-be20-d398f9cc59ac
3232
DisplayName : Power BI Service
3333
AppId : 60dbf324-9702-41cc-a5fa-f8d19804b014
3434
SignInAudience : AzureADMultipleOrgs
3535
```
3636

37-
This example gets the service principal by display name.
37+
This example gets the service principal by the display name.
3838

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

41-
To consent to any of these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
41+
To consent to these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -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-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
61+
To consent to these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -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 the permissions for this resource, see the [Application permissions reference](/graph/permissions-reference#applicationreadall).
8181

82-
To consent to any of these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -Scopes Application.Read.All, Application.ReadWrite.All`.
82+
To consent to these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -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 the permissions for this resource, see the [Application permissions reference](/graph/permissions-reference#applicationreadall).
104104

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

0 commit comments

Comments
 (0)