File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Teams-Sharepoint Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11using 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.'
You can’t perform that action at this time.
0 commit comments