Skip to content

Commit f59d809

Browse files
AppVeyorAppVeyor
AppVeyor
authored and
AppVeyor
committed
AppVeyor post-build commit[ci skip]
1 parent 27991aa commit f59d809

File tree

6 files changed

+165
-63
lines changed

6 files changed

+165
-63
lines changed

PSMSGraph/PSMSGraph.psd1

+35-27
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
RootModule = 'PSMSGraph.psm1'
2121

2222
# Version number of this module.
23-
ModuleVersion = '1.0.25.42'
23+
ModuleVersion = '1.0.26.43'
2424

2525
# ID used to uniquely identify this module
2626
GUID = '15978dcc-d5ad-4024-ab2a-28bdf946ece7'
@@ -129,38 +129,46 @@
129129
# IconUri = ''
130130

131131
# ReleaseNotes of this module
132-
ReleaseNotes = '# Version 1.0.25.42 (2017-04-22)
132+
ReleaseNotes = '# Version 1.0.26.43 (2017-04-30)
133133
## Functions
134-
### Get-GraphOauthAccessToken
135-
* Revised Invoke-WebRequest error handling. Now uses ```MSGraphAPI.Oauth.Exception``` to handle formating
136-
* Simplified error handling for JSON parsing
137-
* Revamped credential object creation for readbility.
138-
* Clean up debug code
134+
### Get-AADGroupByDisplayName
135+
* Fix error message to say Group instead of uuser and actually put the group name in the error
136+
* ```Write-Error``` now includes original exception with error message
139137
140-
## Types
141-
### MSGraphAPI.Oauth.Exception
142-
* Added the ```MSGraphAPI.Oauth.Exception``` type to handle OAuth related ```Invoke-Webrequest``` Exceptions
143-
* New ScriptMethod JSONResponse converts the response stream from the ```Invoke-WebRequest``` exception from JSON to PSObject
138+
### Get-AADGroupById
139+
* ```Write-Error``` now includes original exception with error message
144140
145-
## Test
146-
### Get-GraphOauthAccessToken.Unit.Tests.ps1
147-
* Added missing code coverage for ```Invoke-webRequest``` error handling
148-
* Add missing code coverage for JSON parsing error handling
149-
* Now at 100% code coverage for ```Get-GraphOauthAccessToken```!
141+
## Tests
142+
### Get-AADGroupByDisplayName.Unit.Tests.ps1
143+
* Added missing code coverage for ```Invoke-GrapRequest``` error handling
144+
* Now has 100% code coverage for ```Get-AADGroupByDisplayName```
150145
151-
## Built Toolds
152-
### psake.ps1
153-
* Adjust recommit logic in PostDeploy task
154-
* Added ```!forcrecommit``` to override default ignores if needed
155-
* Added ```devlop``` to ignored branch for recommits as constant work in the develop branch leads to staging issues.
156-
* Added comment based help file header.
146+
### Get-AADGroupById.Unit.Tests.ps1
147+
* Added missing code coverage for ```Invoke-GrapRequest``` error handling
148+
* Now has 100% code coverage for ```Get-AADGroupById```
157149
158150
## Documentation
159-
### Get-GraphOauthAccessToken
160-
* Modifyed Description to something useful
161-
* adjusted formating on ```Resource``` parameter
162-
* Added ```Get-GraphOauthAuthorizationCode``` to Notes
163-
* Added ```Get-GraphOauthAuthorizationCode``` to Links'
151+
### Get-AADGroupByDisplayName
152+
* Re-worded synopsis
153+
* Add more helpful description
154+
* Added clarity about the required reource for Access Tokens
155+
* Fix typo in ```APIVersion``` parameter
156+
* Corrected Output to reflect the correct object type
157+
* Added the following links:
158+
+ ```Get-GraphOauthAccessToken```
159+
+ MSDN AAD Graph Group Operations
160+
+ MSDN AAD Graph Filter parameter
161+
162+
### Get-AADGroupById
163+
* Re-worded synopsis
164+
* Add more helpful description
165+
* Added clarity about the required reource for Access Tokens
166+
* Added clarity on what ObjectID is required
167+
* Fixed typo in ```APIVersion``` parameter
168+
* Added the following links:
169+
+ ```Get-GraphOauthAccessToken```
170+
+ MSDN AAD Graph Group Operations
171+
+ MSDN AAD Graph Filter parameter'
164172

165173
} # End of PSData hashtable
166174

RELEASE.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Version 1.0.26.43 (2017-04-30)
12
## Functions
23
### Get-AADGroupByDisplayName
34
* Fix error message to say Group instead of uuser and actually put the group name in the error
@@ -36,4 +37,4 @@
3637
* Added the following links:
3738
+ ```Get-GraphOauthAccessToken```
3839
+ MSDN AAD Graph Group Operations
39-
+ MSDN AAD Graph Filter parameter
40+
+ MSDN AAD Graph Filter parameter

docs/ChangeLog.md

+43
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
# Version 1.0.26.43 (2017-04-30)
2+
## Functions
3+
### Get-AADGroupByDisplayName
4+
* Fix error message to say Group instead of uuser and actually put the group name in the error
5+
* ```Write-Error``` now includes original exception with error message
6+
7+
### Get-AADGroupById
8+
* ```Write-Error``` now includes original exception with error message
9+
10+
## Tests
11+
### Get-AADGroupByDisplayName.Unit.Tests.ps1
12+
* Added missing code coverage for ```Invoke-GrapRequest``` error handling
13+
* Now has 100% code coverage for ```Get-AADGroupByDisplayName```
14+
15+
### Get-AADGroupById.Unit.Tests.ps1
16+
* Added missing code coverage for ```Invoke-GrapRequest``` error handling
17+
* Now has 100% code coverage for ```Get-AADGroupById```
18+
19+
## Documentation
20+
### Get-AADGroupByDisplayName
21+
* Re-worded synopsis
22+
* Add more helpful description
23+
* Added clarity about the required reource for Access Tokens
24+
* Fix typo in ```APIVersion``` parameter
25+
* Corrected Output to reflect the correct object type
26+
* Added the following links:
27+
+ ```Get-GraphOauthAccessToken```
28+
+ MSDN AAD Graph Group Operations
29+
+ MSDN AAD Graph Filter parameter
30+
31+
### Get-AADGroupById
32+
* Re-worded synopsis
33+
* Add more helpful description
34+
* Added clarity about the required reource for Access Tokens
35+
* Added clarity on what ObjectID is required
36+
* Fixed typo in ```APIVersion``` parameter
37+
* Added the following links:
38+
+ ```Get-GraphOauthAccessToken```
39+
+ MSDN AAD Graph Group Operations
40+
+ MSDN AAD Graph Filter parameter
41+
42+
43+
144
# Version 1.0.25.42 (2017-04-22)
245
## Functions
346
### Get-GraphOauthAccessToken

docs/RELEASE.md

+34-26
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,40 @@
1-
# Version 1.0.25.42 (2017-04-22)
1+
# Version 1.0.26.43 (2017-04-30)
22
## Functions
3-
### Get-GraphOauthAccessToken
4-
* Revised Invoke-WebRequest error handling. Now uses ```MSGraphAPI.Oauth.Exception``` to handle formating
5-
* Simplified error handling for JSON parsing
6-
* Revamped credential object creation for readbility.
7-
* Clean up debug code
3+
### Get-AADGroupByDisplayName
4+
* Fix error message to say Group instead of uuser and actually put the group name in the error
5+
* ```Write-Error``` now includes original exception with error message
86

9-
## Types
10-
### MSGraphAPI.Oauth.Exception
11-
* Added the ```MSGraphAPI.Oauth.Exception``` type to handle OAuth related ```Invoke-Webrequest``` Exceptions
12-
* New ScriptMethod JSONResponse converts the response stream from the ```Invoke-WebRequest``` exception from JSON to PSObject
7+
### Get-AADGroupById
8+
* ```Write-Error``` now includes original exception with error message
139

14-
## Test
15-
### Get-GraphOauthAccessToken.Unit.Tests.ps1
16-
* Added missing code coverage for ```Invoke-webRequest``` error handling
17-
* Add missing code coverage for JSON parsing error handling
18-
* Now at 100% code coverage for ```Get-GraphOauthAccessToken```!
10+
## Tests
11+
### Get-AADGroupByDisplayName.Unit.Tests.ps1
12+
* Added missing code coverage for ```Invoke-GrapRequest``` error handling
13+
* Now has 100% code coverage for ```Get-AADGroupByDisplayName```
1914

20-
## Built Toolds
21-
### psake.ps1
22-
* Adjust recommit logic in PostDeploy task
23-
* Added ```!forcrecommit``` to override default ignores if needed
24-
* Added ```devlop``` to ignored branch for recommits as constant work in the develop branch leads to staging issues.
25-
* Added comment based help file header.
15+
### Get-AADGroupById.Unit.Tests.ps1
16+
* Added missing code coverage for ```Invoke-GrapRequest``` error handling
17+
* Now has 100% code coverage for ```Get-AADGroupById```
2618

2719
## Documentation
28-
### Get-GraphOauthAccessToken
29-
* Modifyed Description to something useful
30-
* adjusted formating on ```Resource``` parameter
31-
* Added ```Get-GraphOauthAuthorizationCode``` to Notes
32-
* Added ```Get-GraphOauthAuthorizationCode``` to Links
20+
### Get-AADGroupByDisplayName
21+
* Re-worded synopsis
22+
* Add more helpful description
23+
* Added clarity about the required reource for Access Tokens
24+
* Fix typo in ```APIVersion``` parameter
25+
* Corrected Output to reflect the correct object type
26+
* Added the following links:
27+
+ ```Get-GraphOauthAccessToken```
28+
+ MSDN AAD Graph Group Operations
29+
+ MSDN AAD Graph Filter parameter
30+
31+
### Get-AADGroupById
32+
* Re-worded synopsis
33+
* Add more helpful description
34+
* Added clarity about the required reource for Access Tokens
35+
* Added clarity on what ObjectID is required
36+
* Fixed typo in ```APIVersion``` parameter
37+
* Added the following links:
38+
+ ```Get-GraphOauthAccessToken```
39+
+ MSDN AAD Graph Group Operations
40+
+ MSDN AAD Graph Filter parameter

docs/functions/Get-AADGroupByDisplayName.md

+25-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Get-AADGroupByDisplayName
22

33
## SYNOPSIS
4-
Retrieves an Azure AD Group by the Display name
4+
Retrieves an Azure AD Group by the provided Display name
55

66
## SYNTAX
77

@@ -11,7 +11,19 @@ Get-AADGroupByDisplayName [-AccessToken] <Object> [-DisplayName] <String[]> [[-B
1111
```
1212

1313
## DESCRIPTION
14-
Retrieves an Azure AD Group by the Display Name
14+
Searches Azure Active Directory Graph API for a Group by the provided display name.
15+
The provided displayname must be a full case-insensitive match.
16+
Partial matches and
17+
wildcards are not supported.
18+
A MSGraphAPI.DirectoryObject.Group object will be
19+
returned for the matching group.
20+
21+
Get-AADGroupByDisplayName requires a MSGraphAPI.Oauth.AccessToken issued for the
22+
https://graph.windows.net resource.
23+
See the Get-GraphOauthAccessToken help for
24+
more information.
25+
26+
Get-Help -Name Get-GraphOauthAccessToken -Parameter Resource
1527

1628
## EXAMPLES
1729

@@ -24,6 +36,7 @@ $AADGroup = Get-AADGroupByDisplayName -AccessToken $GraphAccessToken -DisplayNam
2436

2537
### -AccessToken
2638
MSGraphAPI.Oauth.AccessToken object obtained from Get-GraphOauthAccessToken.
39+
Access Token must be issued for the https://graph.windows.net resource.
2740

2841
```yaml
2942
Type: Object
@@ -39,7 +52,8 @@ Accept wildcard characters: False
3952
4053
### -DisplayName
4154
The Group's Display Name.
42-
This must be an exact match and does not support wildcards
55+
This must be an exact case-insensitive match and does not
56+
support wildcards or partial matches.
4357
4458
```yaml
4559
Type: String[]
@@ -72,7 +86,7 @@ Accept wildcard characters: False
7286
```
7387
7488
### -APIversion
75-
version og the API to use.
89+
Version of the API to use.
7690
Default is 1.6
7791
7892
```yaml
@@ -122,7 +136,7 @@ Accept wildcard characters: False
122136
123137
## OUTPUTS
124138
125-
### MSGraphAPI.DirectoryObject.ServicePrincipal
139+
### MSGraphAPI.DirectoryObject.Group
126140
127141
## NOTES
128142
@@ -134,3 +148,9 @@ Accept wildcard characters: False
134148
135149
[http://psmsgraph.readthedocs.io/en/latest/functions/Get-AADGroupByID](http://psmsgraph.readthedocs.io/en/latest/functions/Get-AADGroupByID)
136150
151+
[http://psmsgraph.readthedocs.io/en/latest/functions/Get-GraphOauthAccessToken](http://psmsgraph.readthedocs.io/en/latest/functions/Get-GraphOauthAccessToken)
152+
153+
[https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/groups-operations](https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/groups-operations)
154+
155+
[https://msdn.microsoft.com/en-us/library/azure/ad/graph/howto/azure-ad-graph-api-supported-queries-filters-and-paging-options#filter](https://msdn.microsoft.com/en-us/library/azure/ad/graph/howto/azure-ad-graph-api-supported-queries-filters-and-paging-options#filter)
156+

docs/functions/Get-AADGroupByID.md

+26-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Get-AADGroupByID
22

33
## SYNOPSIS
4-
Retrieves an Azure AD Group by their Object ID
4+
Retrieves an Azure AD Group by hte provided Object ID
55

66
## SYNTAX
77

@@ -11,7 +11,21 @@ Get-AADGroupByID [-AccessToken] <Object> [-ObjectId] <String[]> [[-BaseUrl] <Str
1111
```
1212

1313
## DESCRIPTION
14-
Retrieves an Azure AD Group by their Object ID
14+
Searches Azure Active Directory Graph API for a Group by the provided Object ID.
15+
The provided Object ID must be a full case-insensitive match.
16+
Partial matches and
17+
wildcards are not supported.
18+
The Object ID is the Azure AD Object ID and not the
19+
ObjectGUID synced from an On-prem AD.
20+
A MSGraphAPI.DirectoryObject.Group object will
21+
be returned for the matching group.
22+
23+
Get-AADGroupById requires a MSGraphAPI.Oauth.AccessToken issued for the
24+
https://graph.windows.net resource.
25+
See the Get-GraphOauthAccessToken help for
26+
more information.
27+
28+
Get-Help -Name Get-GraphOauthAccessToken -Parameter Resource
1529

1630
## EXAMPLES
1731

@@ -24,6 +38,7 @@ $AADGroup = Get-AADGroupByID -AccessToken $GraphAccessToken -ObjectID d377e755-9
2438

2539
### -AccessToken
2640
MSGraphAPI.Oauth.AccessToken object obtained from Get-GraphOauthAccessToken.
41+
Access Token must be issued for the https://graph.windows.net resource.
2742

2843
```yaml
2944
Type: Object
@@ -38,7 +53,8 @@ Accept wildcard characters: False
3853
```
3954
4055
### -ObjectId
41-
The group's ObjectID e.g d377e755-9365-400f-ab42-c0bf278c386e
56+
The group's Azure AD ObjectID e.g d377e755-9365-400f-ab42-c0bf278c386e
57+
This is not the ObjectGUID synced from an On-prem AD
4258
4359
```yaml
4460
Type: String[]
@@ -71,7 +87,7 @@ Accept wildcard characters: False
7187
```
7288
7389
### -APIversion
74-
version og the API to use.
90+
Version of the API to use.
7591
Default is 1.6
7692
7793
```yaml
@@ -133,3 +149,9 @@ Accept wildcard characters: False
133149
134150
[http://psmsgraph.readthedocs.io/en/latest/functions/Get-AADGroupByDisplayName](http://psmsgraph.readthedocs.io/en/latest/functions/Get-AADGroupByDisplayName)
135151
152+
[http://psmsgraph.readthedocs.io/en/latest/functions/Get-GraphOauthAccessToken](http://psmsgraph.readthedocs.io/en/latest/functions/Get-GraphOauthAccessToken)
153+
154+
[https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/groups-operations](https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/groups-operations)
155+
156+
[https://msdn.microsoft.com/en-us/library/azure/ad/graph/howto/azure-ad-graph-api-supported-queries-filters-and-paging-options#filter](https://msdn.microsoft.com/en-us/library/azure/ad/graph/howto/azure-ad-graph-api-supported-queries-filters-and-paging-options#filter)
157+

0 commit comments

Comments
 (0)