Skip to content

Commit

Permalink
Merge pull request #1281 from Ren-Roros-Digital/addteam
Browse files Browse the repository at this point in the history
fix: fixed Add Team
  • Loading branch information
KelvinTegelaar authored Jan 31, 2025
2 parents a02dc01 + 7b72786 commit 7f74e80
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ Function Invoke-AddTeam {
# Write to the Azure Functions log stream.
Write-Host 'PowerShell HTTP trigger function processed a request.'

$Owners = ($userobj.owner).value
$Owners = ($userobj.owner)
try {

if ($null -eq $Owners) {
throw "You have to add at least one owner to the team"
}
$Owners = $Owners | ForEach-Object {
$OwnerID = "https://graph.microsoft.com/beta/users('$($_)')"
@{
Expand Down

0 comments on commit 7f74e80

Please sign in to comment.