we have more than 3000 users need to be deleted from ALM11.52 siteadmin for user cleanup purpose, it would take us long time if do it manually through siteamdin UI, i am looking for some OTA API vbscript to delete those users. any suggestion would be much appreciated.
thanks in advance.
Are you looking for somebody to give you the code?
You should be looking at the Site Admin API, not the OTA API.
(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)
From the manual
Public Function DeleteUser( _
ByVal UserName As String _
) As String
Private Sub DeleteUser()
'The following Visual Basic example deletes a user.
Dim sReply As String
On Error GoTo err
sReply = m_SAClient.DeleteUser("alex_td")
If (sReply = "1") Then
MsgBox "User Deleted"
MsgBox "Program failed:" + err.Description
~Have you Read The Felicitous Manual?
~Please hit the KUDOS button if my reply helped resolve your issue.
thanks for the suggestion, i looked at the SA API, there is one issue i can not figure out.
how do i create the m_SAClient object? i tried the following way but none of them worked.
'm_SAClient = CreateObject(“SAClient.SaApi.9”)
m_SAClient = CreateObject("SAClient80MP.SAapi")
'Set m_SAClient = New SAapi
'Set m_SAClient = new SACLIENTLib.SAapi
Even I have the same question, need help with OTA API script for delete users.
I do not have any experience working with APIs,
So how do I get started with this?