Skip to content

Commit 45c977e

Browse files
committed
add user object to AddUser response
1 parent d29902b commit 45c977e

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-AddUser.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using namespace System.Net
22

3-
Function Invoke-AddUser {
3+
function Invoke-AddUser {
44
<#
55
.FUNCTIONALITY
66
Entrypoint
@@ -52,6 +52,7 @@ Function Invoke-AddUser {
5252
'Success' = $CreationResults.CopyFrom.Success
5353
'Error' = $CreationResults.CopyFrom.Error
5454
}
55+
'User' = $CreationResults.User
5556
}
5657
}
5758
# Associate values to output bindings by calling 'Push-OutputBinding'.

Modules/CIPPCore/Public/New-CIPPUserTask.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,6 @@ function New-CIPPUserTask {
8383
Username = $CreationResults.Username
8484
Password = $CreationResults.Password
8585
CopyFrom = $CopyFrom
86+
User = $CreationResults.User
8687
}
8788
}

Modules/CIPPCore/Public/New-CippUser.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function New-CIPPUser {
6666
Results = ('Created New User.')
6767
Username = $UserPrincipalName
6868
Password = $password
69+
User = $GraphRequest
6970
}
7071
} catch {
7172
$ErrorMessage = Get-CippException -Exception $_

0 commit comments

Comments
 (0)