snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Import users and associate to department

Open flaviomeyer opened this issue 8 years ago • 4 comments

Hi Dev Team

Is it possible to import users with csv and associate them with the department field? I see only other fields but not department field when i want to import .csv file and match them together with fields.

Kind regards, Flavio


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

flaviomeyer avatar Apr 17 '18 06:04 flaviomeyer

+1 to this request. For now, I'm tucking department into the notes field so I can pull the information out via the API.

seankaiser avatar May 13 '18 11:05 seankaiser

Definitely need this. Would pretty much make #3486 of no use for me.

Need to update over 1000 users into departments. Was originally looking to do this during LDAP or through some overly complicated "update LDAP users" crap as mentioned in 3486 above. However, being able to import and accomplish this would be sufficient.

MSWork79 avatar Jul 02 '18 20:07 MSWork79

@MSTigers can't you just bulk edit them for now?

snipe avatar Jul 02 '18 20:07 snipe

If they were all going to the same department I could. Though I can't think of any meaningful way to sort and organize them in Snipe that bulk edit would be doable since I'm splitting them into 12 different departments.

Our personnel information systems software holds the personal data. We export that and convert some of the data into something we can use for AD. Update our Active Directory and shove them into an OU based off of that data. (Automated)

I then use a powershell script snippet: @{Label = "Distinguished Name";Expression = {$_.distinguishedName}}, that exports whatever I need, but most importantly here is the Distinguished Name that pulls their OU and dumps that info into a CSV.

Excel =RIGHT(LEFT(E2,LEN(E2)-73),4) code pulls all irrelevant characters out of the distinguishedName dump and leaves me with the last portion of the OU. This correlates with the Department in Snipe (12-14 of them).

That OU is the only piece of information I have that will allow me to distinguish differences between the users.

I had a long internal discussion on why I needed departments over locations. The tl;dr of it is while it's not consistent and will be a little extra math later on if I wanted to pull numbers of people from certain areas, locations should be sufficient. If not, I mean I could import with location, bulk edit all in Location X to Dept X, then bulk edit location if I was that picky about it.

MSWork79 avatar Jul 03 '18 12:07 MSWork79