Description:
This API will set object permission for a role or a user.
API Endpoint:
/ws/RepositoryManagement
Method:
POST
Header:
Field | Value |
SOAPAction | /ws/datasetManagement.wsdl |
Request:
XML Element | Type | Value |
<wsse:Username> | String | Smarten username |
<wsse:Password> | String | Smarten user password |
<rep: objectId> | String | Smarten object id |
<rep:roleName> | String | Role name which is to be given |
<rep:permission> | String | Type Of the permission |
<rep:userName> | String | User name to whom permission is to be given |
Request Example:
<soapenv:Envelope xmlns:rep="http://www.elegantjbi.com/ws/RepositoryManagement" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-91BBA648BD9FD2AB6F169271185314115">
<wsse:Username>username</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<rep:setObjectPermissionRequest>
<!--Zero or more repetitions:-->
<rep:objectPermission>
<rep:objectId>objectId</rep:objectId>
<!--Zero or more repetitions:-->
<rep:rolePermission>
<rep:roleName>role</rep:roleName>
<rep:permission>permission</rep:permission>
</rep:rolePermission>
<!--Zero or more repetitions:-->
<rep:userPermission>
<rep:userName>username</rep:userName>
<rep:permission>view</rep:permission>
</rep:userPermission>
</rep:objectPermission>
</rep:setObjectPermissionRequest>
</soapenv:Body>
</soapenv:Envelope>
Response:
Return a response with SOAP XML as object.
XML Element | Type | Value |
<ns2:statusCode> | String | Return the API status response |
Response Example:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1">
<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="XWSSGID-1747337693638-1069532304">
<wsse:Username>user</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">ArB9+cMPFs7df1qciXM/FD3UBjs=</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">uHwanrZYqPN50uC/JSfCQewA</wsse:Nonce>
<wsu:Created>2025-06-02T04:30:34.208Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns2:setObjectPermissionResponse xmlns:ns2="http://www.elegantjbi.com/ws/RepositoryManagement">
<ns2:status>
<ns2:statusCode>success</ns2:statusCode>
<ns2:detail>
<ns2:code>1</ns2:code>
<ns2:description>description</ns2:description>
<ns2:ref>user name =User object id = objectId</ns2:ref>
</ns2:detail>
</ns2:status>
</ns2:setObjectPermissionResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Postman Example:
You can import the example below into Postman.
curl --location 'https://<SMARTENURL>/smarten/ws/repositoryManagement.wsdl' \
--header 'Content-Type: text/xml' \
--data '<soapenv:Envelope xmlns:rep="http://www.elegantjbi.com/ws/RepositoryManagement" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-91BBA648BD9FD2AB6F169271185314115">
<wsse:Username>username</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<rep:setObjectPermissionRequest>
<!--Zero or more repetitions:-->
<rep:objectPermission>
<rep:objectId>objectId</rep:objectId>
<!--Zero or more repetitions:-->
<rep:rolePermission>
<rep:roleName>role</rep:roleName>
<rep:permission>permission</rep:permission>
</rep:rolePermission>
<!--Zero or more repetitions:-->
<rep:userPermission>
<rep:userName>username</rep:userName>
<rep:permission>permission</rep:permission>
</rep:userPermission>
</rep:objectPermission>
</rep:setObjectPermissionRequest>
</soapenv:Body>
</soapenv:Envelope>'
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article