| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 | [role="xpack"][[security-api-get-user-privileges]]=== Get user privileges API++++<titleabbrev>Get user privileges</titleabbrev>++++Retrieves the <<security-privileges,security privileges>> for the logged in user.[[security-api-get-user-privileges-request]]==== {api-request-title}`GET /_security/user/_privileges`[[security-api-get-user-privileges-prereqs]]==== {api-prereq-title}* All users can use this API, but only to determine their own privileges. To check the privileges of other users, you must use the run as feature. Formore information, see <<run-as-privilege>>.[[security-api-get-user-privileges-desc]]==== {api-description-title}To check whether a user has a specific list of privileges, use the<<security-api-has-privileges,has privileges API>>.[[security-api-get-user-privileges-example]]==== {api-examples-title}[source,console]--------------------------------------------------GET /_security/user/_privileges--------------------------------------------------[source,console-result]--------------------------------------------------{  "cluster" : [    "all"  ],  "global" : [ ],  "indices" : [    {      "names" : [        "*"      ],      "privileges" : [        "all"      ],      "allow_restricted_indices" : true    }  ],  "applications" : [    {      "application" : "*",      "privileges" : [        "*"      ],      "resources" : [        "*"      ]    }  ],  "run_as" : [    "*"  ]}--------------------------------------------------// TESTRESPONSE[s/: false/: true/]
 |