I thought I would call upon the combined brainpower of all the Connect users and extend a request for assistance.
I am looking for a way to automate the assignment of ‘owner’ to an asset. Now before you say, ‘well, there is the task to assign the primary user as the owner’, I already know that. I don’t want to assign the ‘primary owner’. I want to assign the ‘owner’ of the computer to a specific person based on specific criteria.
That criteria is, the person whose phone number from the AD User Import matches the first four digits of the computer name. It just so happens that the phone number of a person in AD is their phone extension. Yes, that is how they do it here. Don’t ask. And it just so happens that the computers are named <4digitExtnesion>-<serial number). Ex. 4567-fhg723a.
We know there is a person in AD that has that phone extension, so it is a perfect match. I don’t want to have to manually right-click | CMDB Functions | Assignment Functions | Assign Owner on every computer.
In the case where there is more than one user who has the same phone extension, we will simply assign it to the manager of that user (which also comes in from AD. First one found to match is ok)
I am thinking automation policy with a report as the base that has a kick-a$$ sql statement, or possibly some ASDK work, but not really sure, so I wanted to get some ideas.