In this example walkthrough you will see how to set up a SHRINE i2b2 user with the correct roles, and set up for Active Directory Sync by calling the web services of the PM Cell.
| Step | Logic | PHP | XML | Sample Call |
|---|---|---|---|---|
| 1 | Check that a user is not already registered in SHRINE project
|
| <pm:get_role> | i2b2_get_role($user_name,$config_start_project_id) |
| 2 | Set the user in the i2b2 SHRINE project | i2b2_set_user($user_name, $full_name, $email, "", "")
| <pm:set_user> | |
| 3 | Give the user role of DATA_AGG | i2b2_set_role($user_name, 'DATA_AGG', $project_id)
| <pm:set_role> | |
| 4 | Give the user role of USER | i2b2_set_role($user_name, 'USER', $project_id)
| <pm:set_role> | |
| 5 | Set the user param of authentication_method to NTLM | i2b2_set_user_param($user_name, "authentication_method", "T", "NTLM")
| <pm:set_user_param> | |
| 6 | Set the user param of domain to your AD domain | i2b2_set_user_param($user_name, "domain", "T", $config_AD_Domain)
| <pm:set_user_param> | |
| 7 | Set the user param of domain_controller to the address of your domain controler | i2b2_set_user_param($user_name, "domain_controller", "T", $config_domain_controler)
| <pm:set_user_param> |