Title: Import Users
Last modified: April 16, 2020

---

# Import Users

 *  Resolved [nonprofitweb](https://wordpress.org/support/users/nonprofitweb/)
 * (@nonprofitweb)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/import-users-13/)
 * I am wondering if there is a way to import users with the correct access levels
   assigned. I have exported users using a different plugin and looked at the fields
   and it appears that this plug adds the a _ca_level_# for each level but I can’t
   figure out the number that is listed in that column.
 * Thank you for your insight and help.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/import-users-13/#post-12718238)
 * Currently there is no built-in import/export functionality, but you are correct
   that the level relationship is saved in that format. the # refers to the ID of
   the level (post_type=restriction) in wp_posts
 * You could also write a script and do something like this:
 *     ```
       $user_ids = [1,2,3];
       $level_id = rua_get_level_by_name('level-name');
       foreach($user_ids as $user_id)
           rua_get_user($user_id)->add_level($level_id);
       }
       ```
   
 * I hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Import Users’ is closed to new replies.

 * ![](https://ps.w.org/restrict-user-access/assets/icon-256x256.png?rev=1815922)
 * [Restrict User Access - Ultimate Membership & Content Protection](https://wordpress.org/plugins/restrict-user-access/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-user-access/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-user-access/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-user-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-user-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-user-access/reviews/)

## Tags

 * [csv](https://wordpress.org/support/topic-tag/csv/)
 * [Import](https://wordpress.org/support/topic-tag/import/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/import-users-13/#post-12718238)
 * Status: resolved