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 ?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communitySimilar 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 ?
access callback
and access callback file
, unless you want to use DrupalGap which is tailored to the link mentioned here)Then in your callback
, try something like this:
return user_roles();