Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

Password not set correctly using Site Admin API

$
0
0

Hello,

 

I currently have a process that creates a user using the site admin API.  The user does get created correctly.  However, the password attribute does not get set correctly.  I have to manually go into Site Admin and reset the password.

 

Any guidance would be appreciated.

 

Abbreviated code:

 

Dim sa As New SACLIENTLib.SAapi 'Instantiate sa client

 'login to Site Admin
       Set sa = New SAapi
       sa.Login qcServerSource, strUsername, strPassword



'Create the user in Site Admin...
    response = sa.CreateUser _
                           (sNameID, sFullName, sEmail, sPhone, sDescription, sPassword)     'create user in site admin...

 

Again, the code runs and the response message shows that the user is created as shown below:

 

<CreateUser>

<USER_ID>4576</USER_ID>

<USER_NAME>qcAbc</USER_NAME>

<ACC_IS_ACTIVE>Y</ACC_IS_ACTIVE>

<FULL_NAME>QC Test</FULL_NAME>

<LAST_UPDATE>1443208935000</LAST_UPDATE>

<USERS_VERSION>1443208935000</USERS_VERSION>

<US_REPORT_ROLE>0</US_REPORT_ROLE>

<EMAIL>QCabc@abc.com</EMAIL>

<USER_PASSWORD>456963</USER_PASSWORD>

<DESCRIPTION>Business User</DESCRIPTION>

<PHONE_NUMBER>123-123-4444</PHONE_NUMBER>

<US_DOM_AUTH></US_DOM_AUTH>

<US_IS_SYSTEM>N</US_IS_SYSTEM>

<US_IS_ACTIVE>Y</US_IS_ACTIVE>

<US_EXPIRATION_DATE></US_EXPIRATION_DATE>

<US_AVATAR_CACHE>0</US_AVATAR_CACHE>

</CreateUser>

 

Even though the password attribute comes back with an assigned (encrypted) value, it is not the value that I set.  Does anyone have any idea why?

 

I am using QC Enterprise v12.01.  IE11, Win7, MS Excel 2010 VBA.

 

Thanks,

Dave


Viewing all articles
Browse latest Browse all 5491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>