While your collection is named users, this is not a user that can access an Atlas database. It might give access to an application that has access to Atlas, but that user cannot access Atlas directly.
See Node.js cant create user in MongoDB Atlas - #5 by steevej