Implements get_uids.

Signed-off-by: Noufal Ibrahim <noufal@nibrahim.net.in>