Workflow and ServiceDesk Community

 View Only
  • 1.  Can we create SD users via SQL query?

    Posted Apr 29, 2013 03:46 PM

    HI Gurus,

    I need to "sync" the servicedesk Users not using AD but perhaps a external database table. How can i do it?  

    Can I assign those created users to SD groups?



  • 2.  RE: Can we create SD users via SQL query?

    Broadcom Employee
    Posted Apr 29, 2013 03:56 PM

    There isn't a way to make ServiceDesk or the Process Manager portal authenticate to users outside of the ProcessManager database. However you could create a custom workflow project that queried your external database for the users and then create users in process manager. All that's required to create a user is their e-mail address and password, but the Add User component also allows for setting additional information as well.



  • 3.  RE: Can we create SD users via SQL query?

    Posted Apr 29, 2013 06:26 PM

    I have done it with a customer specific excel spreadsheet.  The list of user information was in an excel spreadsheet, and I was able to import that data as users.  I will see if I can find the package for reference

     



  • 4.  RE: Can we create SD users via SQL query?

    Posted Apr 29, 2013 09:27 PM

    very good ...



  • 5.  RE: Can we create SD users via SQL query?

    Posted May 08, 2013 11:47 AM

    BRING can you share your package?



  • 6.  RE: Can we create SD users via SQL query?

    Posted May 10, 2013 06:02 PM

    Hello BRING, if you can share your package or give more directions will be very apreciated.



  • 7.  RE: Can we create SD users via SQL query?

    Posted May 14, 2013 10:09 AM

    This should be pretty simple. See pseudo flow below.

    1. Get your users from DB, spreadsheet, etc.
    2. Loop through users ('For Each Element in Collection')
    3. Check if user exists ('Get user by Email' or 'Test If User Exists')
    4. Create user ('Add User')
    5. Add user to groups ('Add User To Group By Email')

    The issue with doing it directly in the DB would be encrypted passwords.



  • 8.  RE: Can we create SD users via SQL query?
    Best Answer

    Posted Jun 04, 2013 05:07 PM

    Hi Seralar, 

     

    As requested, here is the workflow with a sample excel spreadhsheet.  This requires the excel integration component that is included.  If you dont want to use the same formatting (you probably wont), then you will need to create the spreadsheet the way you want to and then regenerate your own integration component to read the spreadsheet.

    This poject creates the users if they do not exist, or updates them if their first name, last name, street address, or telephone changes in the spreadsheet.  Default password created for the users is Password123.

    This is a very rough example of what can be done.  Please test, and change and modify as you would like.

     

     

     

    Attachment(s)

    zip
    ImportSpreadsheetUsers.zip   1.73 MB 1 version
    xls
    users.xls   29 KB 1 version