Viva/Yammer comments through API

Aliaksandr Virkouski 20 Reputation points
2023-06-21T07:22:30.8366667+00:00

Hello Microsoft Community!

Please help with the following:

Re: https://learn.microsoft.com/en-us/rest/api/yammer/network-data-export#authorization

  1. How is it possible to create a user as a verified Viva/Yammer admin?
  2. How long is the lifetime of the token received from OAuth 2.0 Token Endpoint (we mean the token of the verified Viva/Yammer admin)?

Thanks!

Viva Connections
Viva Connections
A Microsoft Viva module that provides a gateway to a modern engagement experience.
101 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,921 questions
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 26,201 Reputation points Microsoft Vendor
    2023-06-23T07:39:20.6133333+00:00

    Hi @Aliaksandr Virkouski ,

    To create a user as a verified Viva/Yammer admin, you will need to follow these steps:

    Make sure you have the appropriate permissions to create users. This requires being a verified admin or network creator.

    Use the POST /users.json endpoint to create the new user. Make sure to include the verified_admin parameter and set it to true. This will designate the user as a verified admin.

    Once the user is created, you can verify their status by checking their profile in the admin dashboard.

    Regarding the lifetime of the token received from OAuth 2.0 Token Endpoint, the duration is typically specified by the server that issues the token. According to the Yammer API documentation, the access token returned by the OAuth 2.0 Token Endpoint has an expiration time of 1 hour. However, this value may be subject to change depending on the specific implementation of the API. It's recommended to request a new token when the existing one is about to expire to ensure uninterrupted access to the API.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.