grantRole

Grants a specified role to a specified user.

Applies to Clouds and Integration Appliances.

Parameters:

userName
The specified userName to whom the specified roleName is to be granted.
role
The specified roleName to be granted to the specified userName.
Returns:
True if the role is granted to the user.
The following example is a SOAP request to grant a role.
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:sec="
http://www.approuter.com/schemas/2008/1/security">
<soapenv:Header>
<sec:sessionId>AEBD5F4E5F311F0B60F6C12642F0418F</sec:sessionId>
</soapenv:Header>
<soapenv:Body>
<sec:grantRole>
<sec:username>test</sec:username>
<sec:role>user</sec:role>
</sec:grantRole>
</soapenv:Body>
</soapenv:Envelope> 


Response:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns3:grantRoleResponse xmlns:ns3="http://www.approuter.com/schemas/2008/1/security" 
xmlns:ns2="http://www.approuter.com/schema/router/1000/security/03">
<ns3:success>true</ns3:success>
</ns3:grantRoleResponse>
</S:Body>
</S:Envelope>



Feedback | Notices


Timestamp icon Last updated: Wednesday, December 16, 2015


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.api.doc/ci00037.html