• Hi everyone,

    i am using wp-ai v2 with oauth.
    i granted access to my application (i am admin on my site).

    i searched the last 2 hours on the www, and nothing found.

    I just want a list of _all_ my registered WP users. extra: filtered by role.
    I mean, jeah, i read that only authors are “published” by WP to the api. i know that.
    but:
    i read also, that i need the permissions or a specific role, or what the heck ever – but how could i give permissions to an application?
    when i edit my app in wp i can’t set any permissions. it also doesn’t have any role.

    i mean, i could imagine that this isn’t too complicated to archive. and also the thing i read before was: add this to your official API documentation, just as a note in the first few lines. i often read about the problem now, but never saw a solution for it.

    Background for my specific problem is:
    I have a guild, managed by a wordpress site. i also have a discord server with a bot. what i want to archieve:
    i give the permissions to a registered wp user (not an author! just a member) in wordpress, the discord bot calls the wp api, checks the role, and set the permissions equivalent on discord.

    discord uses rest api, wp-api is a rest api, perfect.

    so, tell me, either what i have to configure to get a _full_ memberlist of registered users from the wp-api or maybe a code_snippet how i have to extend the api.

    and yes, i think this is a very common issue here on the api. an example couldn’t be that bad.

    sry, but i’m very frustrated, that after hours of digging the only answer i found was nothing…

    greetings

    https://www.ads-software.com/plugins/rest-api/

  • The topic ‘List _all_ Users…again’ is closed to new replies.