Forum breadcrumbs – You are here:Asgaros Support ForumSupportUsergroup field
Please or Register to create posts and topics.

Usergroup field

Hello Asgaros,

Could you please tell me in what table of the database and what is the name of the field that records the user group numbers?

I need to know it because I have to import a huge quantity of users in WP coming from an old forum and would like to import automatically these users in the right usergroups.

Thank you for your answer!

Hello @maxelio42

Usergroups are stored as taxonomies in theĀ wp_term* tables – the taxonomy-name is asgarosforum-usergroup. You can find the ID of a specific usergroup directly in the usergroup-view of the forum-admin-area.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thanks for this fast answer!

Have you got an idea of how I can import my users in WP with a CSV file, while taking into account this user group numbers?

In other words, how can I make the link between a user ID and the user group numbers I want to apply to him/her?

Sorry for being so basic, but I’m a beginner with WP… taxonomies are so “weird” things for me!

I think writing a import-script for this in PHP would be more complicated than just re-assigning the users to their groups manually.

In your case I would create the needed usergroups inside Forum -> Usergroups and then assign the users to their corresponding groups via the Users screen. There are bulk-actions available for usergroups in the dropdown which can be used to assign hundreds of them with one click.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

You’re probably right…

Thanks for your quick help!

Asgaros has reacted to this post.
Asgaros