Contents
On this page

Get User - Plugixa Advanced User Role Editor

GET /plugixa-aure/v1/users/{id}

One account: its roles, the capabilities set on the account itself, and every capability it ends up with.

Needs the Edit people permission: plugixa_aure_edit_users. Part of the Users feature: when it is switched off in Settings the route is not registered and answers 404.

Request

GET https://your-site.example/wp-json/plugixa-aure/v1/users/12

Path parameters

Name Type Description
id integer The account id

Responses

200 OK. data is the account.

{
  "success": true,
  "data": {
    "user": {
      "id": 12,
      "login": "maria",
      "name": "Maria Lopez",
      "email": "maria@example.com",
      "roles": [
        "author"
      ],
      "overrides": 1,
      "version": "a41d07c95e22",
      "caps": {
        "upload_files": false
      },
      "registered": "2026-03-04T08:12:45Z",
      "superAdmin": false,
      "editable": true,
      "avatar": "https://secure.gravatar.com/avatar/0f1e2d3c4b5a?s=48&d=mm&r=g"
    },
    "overrides": {
      "upload_files": false
    },
    "effective": {
      "user": {
        "id": 12,
        "login": "maria",
        "name": "Maria Lopez",
        "email": "maria@example.com",
        "roles": [
          "author"
        ]
      },
      "super_admin": false,
      "capabilities": [
        {
          "cap": "edit_posts",
          "granted": true,
          "source": "role",
          "via": "author"
        },
        {
          "cap": "publish_posts",
          "granted": true,
          "source": "role",
          "via": "author"
        },
        {
          "cap": "read",
          "granted": true,
          "source": "role",
          "via": "author"
        },
        {
          "cap": "upload_files",
          "granted": false,
          "source": "user",
          "via": "maria"
        }
      ]
    }
  }
}
Field Type Meaning
data.user.id integer Account id
data.user.login string Login name
data.user.name string Display name
data.user.email string E-mail address
data.user.roles array Role slugs in the order the account holds them. When roles disagree, WordPress follows the last one
data.user.overrides integer How many capabilities are set on the account itself
data.user.version string Fingerprint of the roles and own capabilities. Send it back in versions to Apply Changes
data.user.caps object The account’s own capabilities: true grants, false blocks. {} when there are none
data.user.registered string UTC registration time, ISO 8601
data.user.superAdmin boolean true for a network super administrator on multisite
data.user.editable boolean Whether you may change this account: false when it holds a role with a capability you lack
data.overrides object Same map as data.user.caps
data.effective.capabilities array Every capability the account ends up with: cap, granted, source (role or user) and via (the deciding role, or the login for an account setting)
data.effective.super_admin boolean When true, capabilities is empty: a super administrator passes every check

Errors

Status Code When
404 plugixa_aure_unknown_user No account with that id.

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-aure/v1/users/12" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-aure/v1/users/12');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-aure/v1/users/12', {
  headers: {
    'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
  },
});
const { data } = await response.json();

Quick Links

Share