If this is the GenericRead or GenericWrite permission against the NAMESPACE token then remove the bits from the framework namespace.
Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function RemovePermissions ( _
    requestContext As TeamFoundationRequestContext, _
    notificationType As NotificationType, _
    token As String, _
    descriptor As IdentityDescriptor, _
    permissionsToRemove As Integer _
) As Boolean
public bool RemovePermissions(
    TeamFoundationRequestContext requestContext,
    NotificationType notificationType,
    string token,
    IdentityDescriptor descriptor,
    int permissionsToRemove
)
public:
bool RemovePermissions(
    TeamFoundationRequestContext^ requestContext, 
    NotificationType notificationType, 
    String^ token, 
    IdentityDescriptor^ descriptor, 
    int permissionsToRemove
)
member RemovePermissions : 
        requestContext:TeamFoundationRequestContext * 
        notificationType:NotificationType * 
        token:string * 
        descriptor:IdentityDescriptor * 
        permissionsToRemove:int -> bool
public function RemovePermissions(
    requestContext : TeamFoundationRequestContext, 
    notificationType : NotificationType, 
    token : String, 
    descriptor : IdentityDescriptor, 
    permissionsToRemove : int
) : boolean
Parameters
- requestContext
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- notificationType
 Type: Microsoft.TeamFoundation.Framework.Server.NotificationType
- token
 Type: System.String
- descriptor
 Type: Microsoft.VisualStudio.Services.Identity.IdentityDescriptor
- permissionsToRemove
 Type: System.Int32
Return Value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.