@@ -399,7 +399,7 @@ const iamRoutes: FastifyPluginAsync = async (fastify, _options) => {
399
399
entry : {
400
400
module : Modules . IAM ,
401
401
actor : request . username ! ,
402
- target : request . body . add [ i ] ,
402
+ target : request . body . remove [ i ] ,
403
403
message : `remove target from group ID ${ groupId } ` ,
404
404
requestId : request . id ,
405
405
} ,
@@ -412,20 +412,20 @@ const iamRoutes: FastifyPluginAsync = async (fastify, _options) => {
412
412
entry : {
413
413
module : Modules . IAM ,
414
414
actor : request . username ! ,
415
- target : request . body . add [ i ] ,
415
+ target : request . body . remove [ i ] ,
416
416
message : `failed to remove target from group ID ${ groupId } ` ,
417
417
requestId : request . id ,
418
418
} ,
419
419
} ) ,
420
420
) ;
421
421
if ( result . reason instanceof EntraGroupError ) {
422
422
response . failure . push ( {
423
- email : request . body . add [ i ] ,
423
+ email : request . body . remove [ i ] ,
424
424
message : result . reason . message ,
425
425
} ) ;
426
426
} else {
427
427
response . failure . push ( {
428
- email : request . body . add [ i ] ,
428
+ email : request . body . remove [ i ] ,
429
429
message : "An unknown error occurred." ,
430
430
} ) ;
431
431
}
@@ -597,7 +597,11 @@ No action is required from you at this time.
597
597
entraIdToken ,
598
598
fastify . environmentConfig . EntraServicePrincipalId ,
599
599
)
600
- ) . filter ( ( x ) => ! genericConfig . ProtectedEntraIDGroups . includes ( x . id ) ) ;
600
+ ) . filter (
601
+ ( x ) =>
602
+ ! genericConfig . ProtectedEntraIDGroups . includes ( x . id ) &&
603
+ x . id !== fastify . environmentConfig . PaidMemberGroupId ,
604
+ ) ;
601
605
request . log . debug (
602
606
"Got manageable groups from Entra ID, setting to cache." ,
603
607
) ;
0 commit comments