diff --git a/server/src/resolvers/Query/users.js b/server/src/resolvers/Query/users.js index 55847b7..7926f7c 100644 --- a/server/src/resolvers/Query/users.js +++ b/server/src/resolvers/Query/users.js @@ -10,7 +10,7 @@ export async function users( const studentGroup = process.env.STUDENT_GROUP || 'Estudantes' - const search = `|(cn=*${parsedSAMAccountName}*)(cn=*${cn}*)(displayName=*${displayName}*)` + const search = `|(sAMAccountName=*${parsedSAMAccountName}*)(cn=*${cn}*)(displayName=*${displayName}*)` const filter = onlyStudents ? `(&(memberOf=CN=${studentGroup},OU=Groups,DC=ifms,DC=edu,DC=br)(${search}))`