Returns the user, group, or app ID by its screen name (username).

This method only works with actors that are already present in the server’s database. If you need to load a remote actor that the server may not know about, use utils.loadRemoteObject instead.

This method can be called without an access token.

Parameters

screen_name
string

The username or username@domain to resolve.

Result

An object:

type
enum

Object type.

Possible values: user, group, application.

id
integer

Object identifier.

Errors

Global errors may occur when calling this method.