Bookshelf Home | Contents | Index | PDF |
Oracle Web Services On Demand Guide > Web Services On Demand API Calls > Service API Calls > AuthAuthorizationUserAuthenticates the current user and returns information about the user's company and the list of privileges enabled for the user's role. UsageYou use the AuthAuthorizationUser method to authenticate the current user and return information relevant to the user. There are no input argument, the method simply authenticates the current user name and password, and returns the information for the authenticated user. The optional SOAP header parameter <AuthenticateOnly> is intended for use only with the AuthAuthorizationUser method:
NOTE: If both <AuthenticateOnly> and <SessionKeepAlive> are set to true, <AuthenticateOnly> takes precedence. ArgumentsTable 42 describes the arguments taken by the AuthAuthorizationUser method. Return Value of the CallThe following information is returned:
Sample SOAP Request - AuthAuthorizationUserThe following SOAP request invokes AuthAuthorizationUser. No arguments are required. <?xml version="1.0" encoding="utf-8" standalone="no"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <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> <AuthWS_AuthAuthorizationUser_Input xmlns="urn:crmondemand/ws/auth/" /> Sample SOAP ResponseThe following illustrates the SOAP response (most of the <Privilege> elements are omitted as indicated by the ellipses (...)): <?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <ns:AuthWS_AuthAuthorizationUser_Output xmlns:ns="urn:crmondemand/ws/auth/"> <AuthenticatedUser xmlns="urn:/crmondemand/xml/auth"> <OrganizationName>Farley 75</OrganizationName> <PrivilegeName>FULL_ACCESS_ANALYTICS</PrivilegeName>YTICS</PrivilegeName> |
Oracle Web Services On Demand Guide, Version 26.0 (Oracle CRM On Demand Release 38) | Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |