this is a role user permission module for import in npm
This module has all the role user permission methods. All are async functions.
{
getAllUsers: [AsyncFunction: getAllUsers],
createUser: [AsyncFunction: createUser],
getUserByEmail: [AsyncFunction: getUserByEmail],
removeUser: [AsyncFunction: removeUser],
getAllRoles: [AsyncFunction: getAllRoles],
getRoleByName: [AsyncFunction: getRoleByName],
createRole: [AsyncFunction: createRole],
deleteRole: [AsyncFunction: deleteRole],
getAllPermissions: [AsyncFunction: getAllPermissions],
getPermissionByName: [AsyncFunction: getPermissionByName],
createPermission: [AsyncFunction: createPermission],
deletePermission: [AsyncFunction: deletePermission],
findByRoleName: [AsyncFunction: findByRoleName],
assignPermissionToRole: [AsyncFunction: assignPermissionToRole],
unassignPermissionToRole: [AsyncFunction: unassignPermissionToRole],
findByUserName: [AsyncFunction: findByUserName],
assignRoleToUser: [AsyncFunction: assignRoleToUser],
unassignRoleToUser: [AsyncFunction: unassignRoleToUser]
}
npm install iam_access