We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Automate software reclamation in SAM

Juraj3
Tera Contributor

The objective is to automatically remove users from Active Directory groups when they are identified as software reclamation candidates for selected software titles.

 

The idea would be to create a scheduled job that checks all filtered candidates in the samp_sw_reclamation_candidate table. The script would then use the existing Azure API to remove those candidates from the corresponding group.

 

Does this sound like a good workaround?  I’m concerned about how to update the candidate records, as there is a workflow behind them and we want to keep everything fully automated.

1 ACCEPTED SOLUTION

Ok, than your proposed way to automate is a feasible option. Please see some additional information and topics to consider from ServiceNow (Reclaim user subscriptions in Software Asset Management classic, Reclaiming user subscriptions) regarding similar use cases.

View solution in original post

6 REPLIES 6

dreinhardt
Kilo Patron

Hi @Juraj3 , why didn’t you adjust the Reclamation to remove the user from the groups as last step of the reclamation process? 

Best, Dennis

Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.

fknell
Mega Patron

Hey @Juraj3! For automatic reclamation you have to use CSD 2.0 (Docs) with SAMP, it's a store App and part of the SAM entitlement. Without CSD installed the tasks should be assigned to a group to manually fulfill the uninstall. 

 

Is there a reason why you want to implement a workaround rather than using the default behavior?

@Juraj3, correct CSD 2.0 is a good choice. What I do not like it the limitation, that you can reclaim only software which was deployed with CSD 2.0 😕 How did you challenge this?

Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.

fknell
Mega Patron

I would recommend to manually or periodically create the relevant software installation "Requested Software" records and map them to respective table CSD table.