We're updating some of our product names. K2 Five will soon be Automation On-Prem. You may see both product names in our help pages while we make this change.
Identity/Users/SearchForUsers
This content applies to legacy components
(such as K2 Studio and K2 for Visual Studio), legacy assemblies, legacy services or legacy functionality. If you have upgraded from
K2 blackpearl 4.7 to K2 Five, these items may still be available in your environment. These legacy items may not be available in
new installations of K2 Five. These legacy items may also not be available, supported, or behave as described, in future updates or versions of K2. Please see the
legacy component support policy for more information about support for these components.
Returns a collection of users, typically used in conjunction with parameters to filter the resulting list.
|
Value |
Notes |
URI |
{Service Root URI}/Identity/Users/SearchForUsers?{Query Options} e.g. https://api.denallix.com:443/K2Services/REST.svc/Identity/Users/SearchForUsers?username=DENALLIX%5CBrandon |
-
Use wildcard characters to search for partial matches.
- Starts with: userName=Brando* (e.g. username=DENALLIX%5CBrando*)
- Ends with: userName=*randon (e.g. username=DENALLIX%5C*randon
- Contains: userName=*Brandon* (e.g. username=DENALLIX%5C*Brandon*)
-
Search strings must be URL encoded. For example, a search for "username=DENALLIX\*Brandon*" would fail because the backslash character should be URL encoded. The "\" character should be substituted to "username=DENALLIX%5C*Brando*"
See http://www.w3schools.com/tags/ref_urlencode.asp for a URL encoding reference.
- Optional parameters
- System Query Options
- Custom Query Options
- username (String) = the user name (or part with wildcard) for the users. Example: DENALLIX\Brandon
- displayName (String) = the display name (or part with wildcard) for the users. Example: Brandon Brown
- FQN (String) = the fully qualified name (or part with wildcard) for the users. Example: K2:DENALLIX\Brandon
- manager (String) = the user’s manager user name (or part with wildcard) for the users. Example: DENALLIX\Erica
- email (String) = the user’s e-mail address. Example: bob@denallix.com
|
Method |
GET |
|
Return Type |
UserCollection or Failure
|
|
Return Example |
<UserCollection xmlns="http://schemas.k2.com/user/d1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <User Username="DENALLIX\Brandon" Fqn="K2:DENALLIX\Brandon" Email="Brandon@denallix.com" Manager="DENALLIX\Erica" DisplayName="Brandon Brown"/> </UserCollection>
|
|