Identity/Users/SearchForUsers

Returns a collection of users configured for the K2 server

URI

{Service Root URI}/Identity/Users/SearchForUsers?{Query Options}
https://api.denallix.com:443/K2Services/REST.svc/Identity/Users/SearchForUsers?username=DENALLIX\Brandon

Method

GET

Query Options

Use wildcard characters to search for partial matches.

In the SearchForUsers method anything passed must be URL encoded. Search for username=DENALLIX\*Brandon* would fail, the "\" should be substituted to username=DENALLIX%5C*Brando*.

Starts with: userName=Brando*

https://api.denallix.com:443/K2Services/REST.svc/Identity/Users/SearchForUsers?username=DENALLIX\Brando*

Ends with: userName=*randon
https://api.denallix.com:443/K2Services/REST.svc/Identity/Users/SearchForUsers?username=DENALLIX\*randon

Contains: userName=*Brandon*
https://api.denallix.com:443/K2Services/REST.svc/Identity/Users/SearchForUsers?username=DENALLIX\*Brandon*

Optional

Return Type

UserCollection or Failure

GET K2Services/REST.svc/Identity/Users/SearchForUsers?username=DENALLIX\Brandon
					<?xml version="1.0" encoding="utf-8"?>                    <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>