# Groups might not be recognised with the MyBB Importer

**URL:** https://meta.discourse.org/t/groups-might-not-be-recognised-with-the-mybb-importer/68634
**Category:** Development
**Created:** [August 23, 2017, 4:39pm UTC](https://meta.discourse.org/t/groups-might-not-be-recognised-with-the-mybb-importer/68634 "2017-08-23T16:39:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Azareal](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Azareal](https://meta.discourse.org/u/Azareal)
#### Post date: [August 23, 2017, 4:39pm UTC](https://meta.discourse.org/t/groups-might-not-be-recognised-with-the-mybb-importer/68634/1 "2017-08-23T16:39:49Z")

</div>

> [@Members problem on importing Mybb to Discourse](https://meta.discourse.org/t/members-problem-on-importing-mybb-to-discourse-loo/68603):
>
> Hi, I’ve installed development enviroment on my Ubuntu local machine. I did it importing steps, it’s work but there are some problems. My Mybb forum has 9k user and 300k post. Posts are seems successfully imported. But many users not imported (Specially who using space character in the username like ‘User Name’) When i go Users section on Discourse panel, i’ve seen only 300 - 400 users. (No one has space character) 1- On the Discourse admin panel seems 9.8k users but on the users tab when i…

A continuation of a discussion in the installation section relating to the MyBB Importer.

The importer currently checks the names of the super mod and admin groups literally, but this’ll fail to detect an admin / super mod, if these groups are renamed by the administrator or the administrator creates their own custom admin / super mod groups.

I wrote some instructions on how to fix the bug in the discussion above (in short, check the flags on the group to tell what type of group it is), but I’m not too familiar with Ruby, and don’t have an environment at the ready to test in, so I’m posting this instead.

**Edit:** I forgot there was a feature to fork discussions 😳

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 23, 2017, 8:04pm UTC](https://meta.discourse.org/t/groups-might-not-be-recognised-with-the-mybb-importer/68634/2 "2017-08-23T20:04:41Z")

</div>

That’s the type of edge case that few importers handle. Your solution sounds like the most robust one. Usually, you have just one data set to go by and have neither the inclination nor any reason to catch stuff like that.

---

<div class="post-metadata">

### Author: ![Azareal](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Azareal](https://meta.discourse.org/u/Azareal)
#### Post date: [August 24, 2017, 6:12am UTC](https://meta.discourse.org/t/groups-might-not-be-recognised-with-the-mybb-importer/68634/3 "2017-08-24T06:12:36Z")

</div>

It’s probably because cancp and these other things are buried in fifty or so columns. There’s a column in the groups table for each permission for efficiency.

It doesn’t store the admin permissions though, those are stored elsewhere on a per-user basis, but those are only used for locking down sections of the ACP, and are stored with PHP’s `serialize()`, if I recall.

cancp is used everywhere outside it, every time an admin check is needed.

And to be fair to whoever made the importer, cancp is a slightly cryptic name. I only know of it because I’ve created custom MyBB plugins before for my own forums (which have since closed down) and I checked cancp to see if someone’s an admin.

cancp basically means can control panel. The Administrator Control Panel, to be accurate.  
Moderators have their own more restricted control panel.
