SPServices to query a SharePoint Online (2013) list that contains a
Group column. (This column is set to allow selection of People Only, in case that matters.)
The query used is below.
<Query> <Where> <Eq> <FieldRef Name='ComponentID'></FieldRef> <Value Type='Number'>151</Value> </Eq> </Where> <QueryOptions><ExpandUserField>TRUE</ExpandUserField></QueryOptions> </Query> <ViewFields> <FieldRef Name='RequiredApprovers' /> // some other fields of other types </ViewFields>
The response I get is below.
[userID = 6];#Skip Baker,[account = #i:email@example.com],#firstname.lastname@example.org,#email@example.com,#Skip Baker,#[Photo URL],#[Department Name],#[Job Title]
I want to parse the string into a User data object, which I know how to do. However, I don't know what all of the parts of the string are, and I don't want to rely on something being an email address when it's really a domain user name, etc. I've used brackets to indicate the parts I believe I understand. Can anyone tell me what the other parts of this string are?