Get a list of projects a user is a part of

23 views
Skip to first unread message

aga...@mercycorps.org

unread,
May 24, 2017, 3:55:40 PM5/24/17
to CommCare Developers
I was wondering if their is a way to extract the different projects a user is a part of so that I can then extract their form data?

Thanks for your help in advance. 

Simon Kelly

unread,
May 30, 2017, 3:49:14 AM5/30/17
to CommCare Developers
Hi Agarten

It's not clear what you're asking. Mobile users are only ever part of a single project. Web users can be part of multiple projects and that is recorded in the internal data model. There is no way to get that information about a web users externally.

Perhaps if you describe your problem in more detail we can help find a solution.

Best regards

Simon Kelly
Director of Server Engineer | Dimagi

On 24 May 2017 at 21:55, <aga...@mercycorps.org> wrote:
I was wondering if their is a way to extract the different projects a user is a part of so that I can then extract their form data?

Thanks for your help in advance. 

--

---
You received this message because you are subscribed to the Google Groups "CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commcare-developers+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

aga...@mercycorps.org

unread,
May 30, 2017, 10:53:23 AM5/30/17
to CommCare Developers
Hey Simon,

I am working for a nonprofit that uses CommCare among other data collection applications regionally and we are developing a central data management system. We would like to be able for users to sign in on our app and be able to import their data. As far as I can tell at the moment, users would have to provide a project name at the time of signing in order for us to then import their data. I was wondering if after signing in to their CommCare account users could then select which project to import their data from. 

Thanks,
Agarten

William Pride

unread,
May 30, 2017, 1:39:08 PM5/30/17
to commcare-...@googlegroups.com
Hi Agareten,

Could you clarify exactly what you mean by "import their data"? Do you mean each person will perform a case import? Or something else?

If you want everyone to import their data to your own project space, then I believe you would want to invite those people to register a user in your project space and give them the "Edit Data" permission so that they could perform the import there.

Cheers,
Will

To unsubscribe from this group and stop receiving emails from it, send an email to commcare-developers+unsubscribe...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Simon Kelly

unread,
Jun 1, 2017, 7:25:49 AM6/1/17
to CommCare Developers
Hi Agarten

I assume you're trying to get data from our hosted CommCare (https://www.commcarehq.org). We don't have a public API that includes the info you're looking for. 



Simon Kelly
Director of Server Engineer | Dimagi

Reply all
Reply to author
Forward
0 new messages