Trying to log in directly to a sub-domain Business Unit or other useris not possible. Instead, a Proxy must be set up from the top-level Business Unit.
However, we have the "setProxy" method that would allow you to solve this here.
setProxy Method |
|
Allows for executing web service commands on behalf of another user setProxy is implemented for Request Web Service methods only. |
Signature |
setProxy(String sessionID, String proxyUserId, String proxyDomainId) |
|
Required Parameters |
sessionID |
Security handle for calling webservices. [mandatory parameter] |
proxyUserId |
id of the proxy user [manadatory parameter] |
proxyDomainId |
id of the business unit for the proxy user [optional parameter] |
|
Return Value |
|
The unsetProxy method can then reverse this:
unsetProxy Method |
|
Removes a proxy user associated with the current session. unsetProxy is implemented for Request Web Service methods only. |
Signature |
unsetProxy(String sessionID) |
|
Required Parameters |
sessionID |
Security handle for calling webservices. [mandatory parameter] |
|
Return Value |
|
After logging in to the session as spadmin, the process would need to call setProxy for the session, then make its request update call. Then call unsetProxy to revert to the spadmin user. If necessary, this can be performed many times in a web services session.