Ad Widget

Collapse

user.get api should support getting on alias as well

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waf
    Junior Member
    • Oct 2014
    • 2

    #1

    user.get api should support getting on alias as well

    since the alias is used to log in to the web ui, alias should also be able to be searched on. either user.get would handle it directly or it would be similar to usergroup.getobjects.
  • DRVTiny
    Senior Member
    • Sep 2011
    • 162

    #2
    user.get supports searching in alias, so i dont understand, what do you asking for?
    You may use (in JSON syntax):
    search: {alias: "alias_value"}

    What the problem?

    Comment

    • waf
      Junior Member
      • Oct 2014
      • 2

      #3
      Originally posted by DRVTiny
      user.get supports searching in alias, so i dont understand, what do you asking for?
      You may use (in JSON syntax):
      search: {alias: "alias_value"}

      What the problem?
      ah, did not actually realize that all the objects support the search feature. however, since alias is a required parameter for users, "alias" should be a directly accessible user.get call. (similar to how you would do "params:{"userids":"34"}")

      Comment

      Working...