coll_pwskills.insert_one(data)
OperationFailure: user is not allowed to do action [insert] on [pwskills.my_record], full error: {'ok': 0, 'errmsg': 'user is not allowed to do action [insert] on [pwskills.my_record]', 'code': 8000, 'codeName': 'AtlasError'}
how do I fix this error
Hi @Mohammed_Aamir,
Welcome to the MongoDB Community forums ![]()
It appears the Atlas user does not have the required permission to write to the database.
To resolve this the user needs to have Project-Data-Access-Read-Write. Please refer to the documentation and grant the required access to the user.
If this still does not work as expected please share the workflow you followed.
Best,
Kushagra