Slick-Ticket > Slick-Ticket Documentation

RSS

Navigation





Quick Search
»
Advanced Search »

PoweredBy

1 - Properties

Top

1.1 - OutsideUser

The default for a user that does not show up in your Active Directory or you try to look them up in AD with an account that does not have the proper rights.

Top

2 - Objects

Top

2.1 - ActiveDirectoryInfo

  • UserName (string)
  • Phone (string)
  • Email (string)
  • SubUnit (int)

Top

3 - Methods



Top

3.1 - GetFromEmail

Gets a user based on their email address, making a new user if they are not already in Slick-Ticket but they are in Active Directory; otherwise returns a dummy user.
  • Inputs: string email
  • Returns: user
  • Notes:
    • This method follows a 3 step process to attempt to get the user:
      1. Tries to find the user in the users table using the email provided
      2. If that fails, it will attempt an Active Directory lookup of the user and make them a profile, defaulting them to the lowest permission group.
        • IMPORTANT: If you run this with an account that does not have rights to lookup users in Active Directory, any user not already in the users table will be returned as the dummy user.
      3. If that fails, it will return a dummy user account that can be used to enter tickets.

Top

3.2 - GetFromUserName

Gets a user base on their userName, returns null if they are not in the table.
  • Inputs: string userName
  • Returns: user
  • Notes:
    • This will not default to a dummy user, instead it will return a null if the UserName is not present.

Top

3.3 - ActiveDirectoryInfo.Get

Gets an ActiveDirectoryInfo object filled with information from Active Directory if the user is present and the account doing the lookup has proper permissions.
  • Inputs: string searchString
  • Returns: user
  • Notes:
    • searchString can be either a Windows Username or an email address.
    • IMPORTANT: this can only do lookups successfully if it is run with an account that is able to do AD lookups; you may need to impersonate for this to work correctly.

ScrewTurn Wiki version 3.0.3.555. Some of the icons created by FamFamFam.