Skip to content

Commit 53cdca4

Browse files
committed
fix sharepoint member endpoint
1 parent ef6aa46 commit 53cdca4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Teams-Sharepoint/Invoke-ExecSetSharePointMember.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-ExecSetSharePointMember {
3+
function Invoke-ExecSetSharePointMember {
44
<#
55
.FUNCTIONALITY
66
Entrypoint
@@ -27,6 +27,7 @@ Function Invoke-ExecSetSharePointMember {
2727
$UserID = (New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/users/$($Request.Body.user.value)" -tenantid $TenantFilter).id
2828
$Results = Remove-CIPPGroupMember -GroupType 'Team' -GroupID $GroupID -Member $UserID -TenantFilter $TenantFilter -Headers $Headers
2929
}
30+
$StatusCode = [HttpStatusCode]::OK
3031
} else {
3132
$StatusCode = [HttpStatusCode]::BadRequest
3233
$Results = 'This type of SharePoint site is not supported.'

0 commit comments

Comments
 (0)