dan-snelson / dialog-scripts

Scripts with leverage Bart Reardon's swiftDialog
MIT License
110 stars 35 forks source link

Feature Request: Add "Assigned to User" field #14

Closed benphilware closed 1 year ago

benphilware commented 1 year ago

Would it be possible to add a field that would allow the user running the script to enter a User name that would then be passed to Jamf.

Currently one of our requirements when setting up a new computer is to ensure that there is a value in the Jamf User Name field.

dan-snelson commented 1 year ago

Thanks for the Feature Request, @benphilware.

Are you thinking of something like the following? /usr/local/jamf/bin/jamf recon -endUsername ${assignedToUser}

What kind of error-checking do you need?

benphilware commented 1 year ago

Yes- that’s exactly what we’re doing. Re: error correction, in our case, we use the Active Directory samAccountName attribute which is formatted as 2-3 letters followed by 1-4 digits. I use a simple regex to validate the format with an error message that says “this looks like an Employee #. Please try again using your HMS ID” (We have a lot of users who confuse their employee ID # w/ their Active Directory ID.)

Of course that’s very specific to our particular use. Obviously not asking for that level of validation; just an idea of what we do. Perhaps just confirming that there is value there? (I could probably add the extra regex validation myself).

Thanks for reaching out.

Phil Benware @.*** IT Manager, Endpoint Services Team Enterprise Services Group Harvard Medical School Boston, Mass

Sent from my iPhone

On Nov 16, 2022, at 7:03 PM, Dan K. Snelson @.***> wrote:



Thanks for the Feature Request, @benphilwarehttps://github.com/benphilware.

Are you thinking of something like the following? /usr/local/jamf/bin/jamf recon -endUsername ${assignedToUser}

What kind of error-checking do you need?

— Reply to this email directly, view it on GitHubhttps://github.com/dan-snelson/dialog-scripts/issues/14#issuecomment-1317845422, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYDUCFLX6XN2PZX6UDVV3TLWIVY3PANCNFSM6AAAAAASBWR2SU. You are receiving this because you were mentioned.Message ID: @.***>

dan-snelson commented 1 year ago

Thanks for your patience, @benphilware, please test-drive v1.3.2 RC1.

NOTE: As indicated in the comments, as I don't use this feature, "you're on your own" for custom coding. (Please do reach out if your mileage varies too greatly.)

benphilware commented 1 year ago

Thank you Dan. I’ll give it a run. Sent from my iPhoneOn Nov 21, 2022, at 5:17 AM, Dan K. Snelson @.***> wrote: Thanks for your patience, @benphilware, please test-drive v1.3.2 RC1. NOTE: As indicated in the comments, as I don't use this feature, "you're on your own" for custom coding. (Please do reach out if your mileage varies too greatly.)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

dan-snelson commented 1 year ago

Resolved in v1.5.0. (Thanks for your patience.)