IS there a way to delete Bulk users if they are not in ANY ALM Project?
Question ID: 108763
0
0

Hi,

I know we can write a OTA or SA API to Deactivate or Delete or Remove bulk users from ALM. BUt, I would like to know if there is a similar way to Delete bulk users if they do not belong to any project in ALM.

Example: I have below users in ALM Project: Game

UserID: trfm34, trfm44, trfm47, trfm79, and trfm88.

I removed them running OTA written in excel macro. Now, after removing them from Game projects they are do not belong to any project. So, each of user listed above should be deleted from ALM.

Please help me if you have some idea.

Marked as spam
Posted by (Questions: 30, Answers: 35)
Asked on December 12, 2018 5:36 pm
142 views
Answers (2)
0
Private answer

Sounds like you'll want to iterate through all active projects, use a dictionary object to count number of projects a user is in. Then iterate through the dictionary and delete users with count of zero.

Marked as spam
Posted by (Questions: 0, Answers: 8)
Answered on January 13, 2019 10:34 pm
0
@arichtman , Yes, want to iterate through all active projects. Not sure how I can do it Via VBS. I was able to manage code to deactivate or Remove user from project and/or delete user from ALM. Now, I need 4th condition, which iterate through all active projects to find users wheather they are in other projects or not. If they are not in any project Delete them from ALM.
( at January 14, 2019 3:50 pm)
0
Private answer

@miraclefren2
[Dictionary][1]
[For each][2]

[1]: https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/dictionary-object
[2]: https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/for-each-next-statement

Marked as spam
Posted by (Questions: 0, Answers: 8)
Answered on January 14, 2019 10:27 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top