removeInvalidPrivs
TODO: If/when AGO implements this logic or runs a script on their end we can remove this logic, or simply return passed in user. Returns a cloned copy of the user object with updated privileges based on whether or not the user has a subscription type not in the allowed list
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
user Required | IUser | ||
subscriptionInfoType Required | string |
Returns
Function defined in teams/src/utils/remove-invalid-privs.ts:27