API: users. Use array_keys instead of magic array