grantRole
指定された役割を指定されたユーザーに付与します。
Cloud および 統合アプライアンス に適用されます。
パラメーター:
- userName
- 指定された roleName が付与される、指定されたuserName。
- role
- 指定された userName に付与される、指定された roleName。
- 戻り:
- 役割がユーザーに付与された場合は true。
以下の例は、役割を付与するための SOAP 要求です。
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>