Hello,
I am using the REST API to connect to my Content Server. How do you pull the User info?
I can get the user_id, but I can't do anything with it. I've tried to treat it as a node, but it doesn't return anything.
Any help?
The API to get information about users and user groups is not stable and has not been made public yet. You can have a sneak peek into the RESTIMPL ospace in the Builder or Oclipse to unconver undocumented resources, like /members/:user_id in this case. But there is no guarantee that they stay as they are now, when they get published.
/members/:user_id
Thank you!
Actually, there is another way how to get the user information. If you don't start with the user ID alone, but you start with enquiring about a node, you can get the user IDs "expanded" to all user attributes with the node information already: /nodes/:node_id?expand=user, /nodes/:container_id/nodes?expand=user. Basically, if there's just an ID or some other reference in the response, it can be expanded to the full information about the referred object within the single request. You wouldn't need issuing additional requests to complete the information. For example, user expands all user information (create_user_id, e.g.), node expands all node information (parent_id, e.g.).
/nodes/:node_id?expand=user
/nodes/:container_id/nodes?expand=user
user
create_user_id
node
parent_id
The members resource is currently not documented and therefore not supported.
If you are looking for information on a user please proceed with expand=user suggestion.