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.