Skip to content

Redcap External Module to manage the user allowlist via API

License

Notifications You must be signed in to change notification settings

uwctri/UserAllowListAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User AllowList API - Redcap External Module

What does it do?

Exposes an API, which requires a super API token, that can be used to add, remove, or search for user names in the Redcap allowlist. This is useful for organizations that want to automate an access managment workflow managed by an external system.

Requests

POST /api/?NOAUTH&type=module&prefix=user_allowlist_api&page=api

body {
    "token": "string"  // Superuser token
    "action": "string" // 'add', 'remove', 'search'
    "user": "username" 
}

Responses

{
    "status": "string",  // 'success' or 'failure'
    "message": "string", // Explination of action that occured
    "value": bool        // ture or false. Null on error
}

Installing

You can install the module from the REDCap EM repo or drop it directly in your modules folder (i.e. redcap/modules/user_allowlist_api_v1.0.0).