Share via


OAuth 2.0 Impersonation

Impersonation enables verified Yammer administrators to request a valid access token on behalf of a user within their network.

Endpoints

List Authorized OAuth 2.0 Access Tokens

GET https://www.yammer.com/api/v1/oauth/tokens.json

Generates (if necessary) and returns a list of authorized OAuth 2.0 access tokens for each network the user is a member of.

Query Parameters:

  • user_id (string): The user ID of the user on whose behalf you are generating the access tokens.
  • consumer_key (string): The application's consumer key, available in the app registration.

Note: Only verified admins may use the user_id and consumer_key parameters to generate tokens on behalf of other users. Non-admins can only retrieve OAuth tokens for networks they are a member of.


Generate a Preauthorized OAuth Access Token

POST https://www.yammer.com/api/v1/oauth.json

Generates a preauthorized OAuth access token for a specified user_id or consumer_key combination.

Note: This action is restricted to verified admins only.