Skip to content
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

Access DAG list? #163

Closed
vortexing opened this issue Jul 14, 2017 · 2 comments
Closed

Access DAG list? #163

vortexing opened this issue Jul 14, 2017 · 2 comments
Assignees

Comments

@vortexing
Copy link

I cannot seem to figure out if/how I could access the list of data access groups in a project. Basically it'd be great to be able to use redcap_metadata_read and get data access groups as well, but I realize DAG's are not part of the data dictionary.

The token is for a user who has access to all DAG's, FYI.

Is there a way to report which DAGs are visible to a specific user regardless of whether there are any records in the project in that DAG (aka, if a DAG was empty, it would still be in the list).

Hopefully I'm just missing something.

Thanks!

@wibeasley
Copy link
Member

Hi @vortexing, the DAG is exposed in a column returned by the API's 'Export Users' method. If you want to follow the pattern to create a function & pull request, I'll help you along. If not, I should have time to add this & the tests in a few weeks.

Method Name
Export Users

Description
This method allows you to export the list of users for a project, including their user privileges and also email address, first name, and last name. Note: If the user has been assigned to a user role, it will return the user with the role's defined privileges.

@wibeasley wibeasley self-assigned this Aug 18, 2017
@wibeasley
Copy link
Member

@vortexing, This is on the dev branch now, and will be pulled in to the master within a few days.

wibeasley added a commit that referenced this issue Sep 16, 2018
wibeasley added a commit that referenced this issue Sep 17, 2018
wibeasley added a commit that referenced this issue Sep 17, 2018
wibeasley added a commit that referenced this issue Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants