Closed Bug 950229 Opened 11 years ago Closed 11 years ago

Add account parameters to /users endpoint in Mozillians.org API

Categories

(Participation Infrastructure :: Phonebook, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
2013-12-19

People

(Reporter: hoosteeno, Assigned: sancus)

References

Details

(Whiteboard: [kb=1215710] )

We should allow people to search the API for users by any of their account names. I can imagine this being implemented in either of the below ways: 

1) A parameter for each account:
/users/?github=hoosteeno -> me
/users/?bmo=giorgos -> giorgos

2) A parameter for any account:
/users/?has_account_like=hoosteeno -> me 
/users/?has_account_like=matt -> a list of people who have "matt" in github, bmo, skype, or any other account

Does one of those seem better/more feasible?

I think partial text search would be optimal, but not absolutely essential.

This will be a very powerful feature for identity reconciliation and will be immediately useful to efforts to integrate our contributor systems.
Assignee: nobody → sancus
Depends on: 916806
Summary: Add parameters to /users endpoint in Mozillians.org API → Add account parameters to /users endpoint in Mozillians.org API
Whiteboard: [kb=1215710]
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Account parameters work as advertised:

GET: https://mozillians.allizom.org/api/v1/users/?app_name=something&app_key=something_else&accounts=hoosteeno

200 OK:
{
  "meta": {
    "limit": 20,
    "next": null,
    "offset": 0,
    "previous": null,
    "total_count": 1
  },
<snip>
Status: RESOLVED → VERIFIED
Target Milestone: --- → 2013-12-19
Mike, BMO accounts can be accessed via the API by using the syntax described in comment 0. 

Tasos or Nemo, could you add this to the API documentation? The Bugzilla team is exploring how to use the BMO account information. Thanks!
Flags: needinfo?(tasos)
Flags: needinfo?(jgiannelos)
Hey William!

There is a bug for that here:
https://bugzilla.mozilla.org/show_bug.cgi?id=987423
Flags: needinfo?(tasos)
Flags: needinfo?(jgiannelos)
You need to log in before you can comment on or make changes to this bug.