I have a list which has a "People and Group" column. when I query the rows using REST, I get user Ids listed in this column.
I found this article which will help me in converting each id to a title
http://www.codeproject.com/Articles/692289/How-to-Get-Login-Name-and-Display-Name-using-Sha
But I am wondering if there is a way in which I can get the user title by a single REST call (rather than first get the ID and then making another call to convert the ID into the user display name and the login name)
Using
$expand
OData operator you can specify that the request returns projected fields from other lists and the values of lookups.The following REST endpoint:
returns
Title
andName
forAuthor
column in Pages listYou can use the below rest query to get the modified by user's title: /_api/web/lists/getbytitle('Pages')/items(1)?$select=Editor/Name,Editor/Title&$expand=Editor/Id