SWAPI – MasterAuth

Query the databases to determine what databases and permissions a user has. 

Request

<ConnectionRequest RequestID="string" ConnectionID="{1DDD406D-79DA-429E-970B-1A99348176FF}" Version="string">

<MasterAuth Version="string">

<password>string</password>

<username>string</username>

</MasterAuth>

</ConnectionRequest>

 

·         password – plain-text password.

·         username – SuccessWare21 user name.

Response

<MasterAuthResponse RequestID="string" Version="2.1.100.1" ResultText="Successful" ResultCode="000" Successful="true">

<CompanyDataset>

<CompanyRecord>

<CompanyNo>string</CompanyNo>

<CompanyName>string</CompanyName>

<IsActive>boolean</IsActive>

<AgentName>string</AgentName>

<EnabledForAgent> boolean</EnabledForAgent>

<ValidForUser> boolean</ValidForUser>

<AbilityList>

<Ability>

<Name>string</Name>

<Enabled>boolean</Enabled>

</Ability>

</AbilityList>

</CompanyRecord>

</CompanyDataset>

</MasterAuthResponse>

 

·         CompanyDataSet – multiple company records can be returned for each company a user has access to

·         AbilityList – multiple abilities can be returned for each ability the user has enabled

·         Ability – the following abilities can be returned

o    JobAdd – Can add jobs

o    Dispatch_Schedule – Can see other techs/days schedules

o    AROverride – Can change price on invoices

o    SWMobileAdmin – Can administer SW Mobile