Similar to How to Retrieve all Forums, how can I retrieve the list of roles in a system via the Services REST API?

This is Drupal 7, Services 3.x.

Are roles terms in a taxonomy vocabulary ?

  • You would probably have to make your own service for this, they are not in taxonomy terms Mar 20, 2015 at 4:10

1 Answer 1

  1. Create a custom service resource, (you'll have to create your own access callback and access callback file, unless you want to use DrupalGap which is tailored to the link mentioned here)
  2. Then in your callback, try something like this:

    return user_roles();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.