Rest Api – Create User

  • Unknown's avatar

    I need to import a large number of users on a large number of sites.

    I am using the rest API and this endpoint, on a paid Premium-package site:

    https://public-api.wordpress.com/wp/v2/sites/123/users (blog id modified for privacy)

    This is the error I receive.

    {“code”:”forbidden_request”,”message”:”That API call is not allowed for this account.”,”data”:{“status”:403}}

    I have a valid access token and believe I have the appropriate permissions.

    Any ideas?

    -Ken W

    PS This is the API endpoint:

    Users

    And, some supplemental information on this that I suspect is the core problem:

    This is a picture from when I created my app. Note that my user has full permissions including the ability to create users:

    However, when the system asks the user to grant permissions, the scope is narrowed:

    The blog I need help with is: (visible only to logged in users)

  • Hi there Ken!

    It might be that what you’re trying to do is not possible on WordPress.com. Since you didn’t want to share the blog’s ID here, why don’t you reach out via email to tell us more details?

    With your Premium plan, you can access Live Chat during weekdays and personalized email support during weekends directly from https://wordpress.com/help/contact

  • Unknown's avatar

    I have done the chat and they can’t help me. As you said, it might be impossible — but, I’m sure something must be. I can’t be the first person who wants to migrate a site to wordpress.com that has a lot of users. (Actually .. I have lots of sites to move over, some with 10,000+ users).

    Forgetting the Rest API (if you believe nothing is possible) .. Is there a way to import a user list via xml, csv, or ?

    I would prefer to stick with wordpress.com .. but, this is a deal-killer issue

  • Forgetting the Rest API (if you believe nothing is possible)

    It’s out of the scope of our support and I’m not really able to advise on that matter.

    Is there a way to import a user list via xml, csv, or ?

    For subscribers, if you’re migrating from a self-hosted WordPress.org site, you can migrate the subscribers if the site’s connected to your WordPress.com account through Jetpack.

    You can also migrate users using third-party plugins, however for that, you’ll need to upgrade the WordPress.com site to Business since it’s not possible to install plugins on lower plans.

    This article may come in handy.

  • Unknown's avatar

    Thank you. The sites are coming from a non-wordpress CMS. I have written to code to import all of the pages, posts, comments, etc. But hit a wall with importing the users.

    I am hoping to avoid the Business site requirement .. because of cost. There are a wide number of sites to be imported, some of which are cost sensitive and some of which aren’t.

    I am currently evaluating other hosting providers, but do hope I can find a way to do this with wordpress.com

  • Ah, I see. The Business plan is the one that gives you the most freedom and, since you’re very tech-savvy, you’ll probably need more features than Premium can offer :) Remember that you can upgrade and opt for a refund within 30 days in case it’s not what you were looking for.

    Self-hosting is another option, for any doubts with WordPress.org sites you can post on the community forums:

    https://wordpress.org/support/forums/

  • The topic ‘Rest Api – Create User’ is closed to new replies.