Accrual to Clinical Trials
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

 

user_has_role("USER",);
StepLogicPHPXMLExample PHP Call
1

Check that a user is not already registered in SHRINE project

 

get_role()

 

<pm:get_role>
Code Block
languagephp
themeMidnight
i2b2_get_role($user_name,$config_start_project_id)
<pm:get_role>
2Set the user in the i2b2 SHRINE project

set_user()

 

 

<pm:set_user>
Code Block
languagephp
themeMidnight
 i2b2_set_user($user_name, $full_name, $email, "", "")
3Give the user role of DATA_AGG

set_role()

 

 

<pm:set_role>
Code Block
languagephp
themeMidnight
 i2b2_set_role($user_name, 'DATA_AGG', $config_start_project_id)
4Give the user role of USER

set_role() 


 


<pm:set_role>
Code Block
languagephp
themeMidnight
i2b2_set_role($user_name, 'USER', $config_start_project_id) 
5Set the user param of authentication_method to NTLM

set_user_param()

 

 

<pm:set_user_param>
Code Block
languagephp
themeMidnight
i2b2_set_user_param($user_name, "authentication_method", "T", "NTLM") 
6Set the user param of domain to your AD domain

set_user_param() 


 


<pm:set_user_param>
Code Block
languagephp
themeMidnight
 i2b2_set_user_param($user_name, "domain", "T", $config_AD_Domain)
7Set the user param of domain_controller to the address of your domain controler

set_user_param() 


 


<pm:set_user_param>
Code Block
languagephp
themeMidnight
 i2b2_set_user_param($user_name, "domain_controller", "T", $config_domain_controler)