The create REST interface will create the defined identity type in the configured data store. The URL needs to be populated with the following information.
identity_name defines the value of the Universal ID attribute in the user's OpenSSO profile.
identity_attribute_names defines one or more LDAP attributes to be created for the identity.
identity_attribute_values_value-of-identity_attribute_names defines the value of the attribute (defined by identity_attribute_name) being created.
identity_realm defines the realm in which the identity is to be created. This is an optional parameter.
identity_type defines the type of identity being created.
admin defines the tokenid of the user with the necessary permissions to search; for example amadmin.
This URL would create a user type.
http://OpenSSO-host:OpenSSO-port/opensso/identity/create?identity_name=rest_user &identity_attribute_names=userpassword&identity_attribute_values_userpassword=secret123 &identity_attribute_names=sn&identity_attribute_values_sn=sn_of_rest_user &identity_attribute_names=cn&identity_attribute_values_cn=cn_of_rest_user &identity_realm=/&identity_type=user &admin=AQIC5wM2LY4Sfcwbg2YdVMaYsfEqdxHDMUc47WSLBNTOlrk=@AAJTSQACMDE=# |
The following URL would create a web agent profile for Policy Agent 3.0 types.
http://OpenSSO-host:OpenSSO-port/opensso/identity/create?identity_name=webagent &identity_realm=/&identity_type=AgentOnly &identity_attribute_names=userpassword&identity_attribute_values_userpassword=secret123 &identity_attribute_names=AgentType&identity_attribute_values_AgentType=WebAgent &identity_attribute_names=SERVERURL&identity_attribute_values_SERVERURL= http://web-agent-host:web-agent-port/opensso |
The following URL would create a J2EE agent profile for Policy Agent 3.0 types.
http://OpenSSO-host:OpenSSO-port/opensso/identity/create?identity_name=j2eeagent &identity_realm=/&identity_type=AgentOnly &identity_attribute_names=userpassword&identity_attribute_values_userpassword=secret123 &identity_attribute_names=AgentType&identity_attribute_values_AgentType=J2EEAgent &identity_attribute_names=SERVERURL &identity_attribute_values_SERVERURL=http://J2EE-agent-host:J2EE-agent-port/opensso &identity_attribute_names=AGENTURL&identity_attribute_values_AGENTURL= http://OpenSSO-host:OpenSSO-port/opensso |
The following URL would create a 2.2 agent profile.
http://OpenSSO-host:OpenSSO-port/opensso/identity/create?identity_name=webagent70 &identity_attribute_names=userpassword&identity_attribute_values_userpassword=secret123 &identity_realm=/&identity_type=Agent &admin=AQIC5wM2LY4SfcxCWBCNON1gTsaMaHISbYmTyYosv8pCPVw=@AAJTSQACMDE=# |
Use the search REST interface to verify that the identity type has been created.