def METHOD_NAME(self, req):
    import re
    sensitive_ids = [b'subscriptionId', b'tenantId', b'clientId', b'principalId']
    for sensitive_id in sensitive_ids:
        if sensitive_id in req:
            req = re.sub(b'"' + sensitive_id + b'":( ?)"[^"]*"', 
                         b'"'+ sensitive_id + b'":"'+ MASK_ID.encode() + b'"', 
                         req, flags=re.IGNORECASE)
    return re