gitlab-org--gitlab-foss/spec/fixtures/phabricator_responses/user.search.json
Bob Van Landuyt 32184839c3 Fetch users from Phabricator to link to issues
We fetch the users from Phabricator based on their Phabricator ID. If
a user with the same username exists and is a member of the project,
we set them as assignee or author.

When a user is applicable, we also cache it in Redis so we don't have
to perform the request again for the same phid.
2019-07-10 17:15:43 +02:00

62 lines
1.2 KiB
JSON

{
"result": {
"data": [
{
"id": 1,
"type": "USER",
"phid": "PHID-USER-hohoho",
"fields": {
"username": "jane",
"realName": "Jane Doe",
"roles": [
"admin",
"verified",
"approved",
"activated"
],
"dateCreated": 1405970599,
"dateModified": 1406705963,
"policy": {
"view": "public",
"edit": "no-one"
}
},
"attachments": {}
},
{
"id": 2,
"type": "USER",
"phid": "PHID-USER-hihihi",
"fields": {
"username": "john",
"realName": "John Doe",
"roles": [
"admin",
"verified",
"approved",
"activated"
],
"dateCreated": 1403609184,
"dateModified": 1559138722,
"policy": {
"view": "public",
"edit": "no-one"
}
},
"attachments": {}
}
],
"maps": {},
"query": {
"queryKey": null
},
"cursor": {
"limit": "100",
"after": null,
"before": null,
"order": null
}
},
"error_code": null,
"error_info": null
}