```javascript const createRole = async () => { c...
# support-questions
k
Copy code
javascript
const createRole = async () => {
  const response = await UserRoles.createNewRoleOrAddPermissions("user", []);

  console.log(response);

  if (response.createdNewRole === false) {
    console.log("Role already exists");
  }
};

createRole();