-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide organisational admins with ODK credentials if needed #2056
Comments
If the user is already an org admin, then instead of giving them access to the HOTOSM org, couldn't we just provide them their own creds for odk.hotosm.org? In the org creation form, if the user provides their ODK server creds, we insert them in the db and use them. But if the user provides no ODK creds, we can create them automatically on our server (after the org is approved). The API for this is here https://docs.getodk.org/central-api-accounts-and-users/ |
A follow up issue to this, users should be able to request to join organisations (we don't always want a new org). |
I don't think it's a good idea to provide credentials or create new credentials to odk of HOT, doing that will give them access to every project data that HOT has. Instead, we may just allow them to use existing credentials without letting them know it? cc: @ramyaragupathy |
That is a good point, and is really an issue with a broken permission model in ODK (only two options: either admin or standard user 'mapper'). I guess this is a matter of trust and if we can accept:
So with the above said, I personally think it's acceptable to provide admin level credentials to org admins in FMTM, as they shouldn't have access to the password themselves. (it does open up other complications, such as how they can view the data in tools like PowerBI via the the OData endpoints, but we can address this later. Perhaps we need to relay the OData endpoints via the FMTM API). |
@Sujanadh can you think of anywhere else the ODK credentials may be exposed in FMTM? I'm pretty certain we don't return any response with the ODK password. I think the creds are only used for the ODK Central calls via the backend, meaning the user can't see those (they simply see the response from the API after). |
Yes, we don't expose the ODK password in any API response. It is all handled from the backend during ODK central calls. |
Thanks for the sanity check! Your message made me reflect a bit more on why we might want separate ODK users for each org. Looking into the ODK Central database, it doesn't even seem like users are linked to projects internally. So it probably makes no different which user creates or modifies an ODK project, as long as they have admin permission (if we could filter projects by the user that created them, then perhaps it would be useful, but I can't see an easy way to do that). With this said, perhaps we just duplicate the |
Follow on from #1951 So to summarise what needs to be done:
|
Is your feature request related to a problem? Please describe.
Followed by discussion on slack, Any organisation admins should be able to choose HOTOSM as an organisation to create a project.
Why would people do that
Sometimes an organisation may not have their own odk central server for storing submissions. In those cases, they can create an organisation but can choose HOTOSM as an organisation during project creation so that submission would be stored on HOTOSM odk server. Although, they should be admin of any organisation to be able to do so since only organisation admins should be able to create projects.
We may have further discussion in long term regarding this. May be they can still use their organisation details but use HOT's odk central.
The text was updated successfully, but these errors were encountered: