Yammer API : manage admin user in groups - yammer

I need to create groups and manage users in this groups using the yammer API.
I created groups and add some users with the API but i don't find any solution to add admin on the groups.
Is that possible ?

Related

API - Customer ID is not easy to find - please support my_customer

The new Cloud Identity Groups API is great - now our customers can pick from their groups without needing admin roles.
However they need to know the customer ID, which afaik can only be found in the control panel.
The Admin SDK allows us to use "...the alias my_customer to represent your account's customerId..."
https://developers.google.com/admin-sdk/directory/v1/reference/users
Please can we have the same for the new API?
You can find the customer ID using the organizations.list API without needing admin roles. It's the directoryCustomerId field.

Is there a way to search from the list of groups in a domain by a non-admin user?

The Directory API throws a 'Not Authorized to access this resource/api' error when I try to list the groups in a domain as a non-admin. But gmail autocompletes the group names (which means it is able to retrieve the list of groups) for non-admin users as well. Is there a way to get the list of groups or search from the list of groups in a domain without being an admin?
The best way to do if you are not an admin user, is to impersonate the admin by using a service account. You need to enable domain-wide delegation for your service account to impersonate a domain admin when making a request. See this SO post and another discussion for this github post.

Login With Google Access Control Using GSuite Groups

We are trying to implement a "Login With Google" feature for an internal admin dashboard web app connected to our GSuite account. We want to limit login to this dashboard in two ways.
Only members of our GSuite domain can login to the dashboard
Only users in our domain belonging to a specific group within our domain can login to the dashboard
So far we have been able to accomplish number 1 above but not 2. Using a query param to the oauth2 API we can limit the domain. What we have in mind to accomplish number 2 is after the user within our domain is logged in, get their group information and validate that they are in the proper internal group or log them out. The issue with this is it seems only GSuite admin accounts are allowed to make API calls to the Directory API for this information. Is there no way to get the group information for a user with their own access token or using a service account? Ideally we don't want to have to provide a specific admin user within our GSuite account's personal credentials in our application to get this working. Is there a better way to proceed?
Thank you in advance for any help!

How to add AD Security Group to Yammer private group?

I want to add AD security group to yammer private group. But When I am adding AD security group nothing is showing there. We have a yammer subscription for our organization. Please help.
Yammer does not support synchronization of Security Groups from Active Directory. Group Management (adding, removing users) happens directly in Yammer or via the REST API. Please see https://developer.yammer.com

How to let google user see the group they have membership without being admin

I am using google api for user to login. I could make oauth already and I can get access token from user to let them use my service
But I want to display current user groups s/he has membership
I can't use admin sdk because that user is not admin and has no permission to get list of group
Are there any api to get list of groups that user exist? Or are there anyway to have master access token to use admin SDK?
Unfortunately there is no Google Groups API that non-admins can use. However, you can configure your application to use the user's authorization for most requests, but use an admin's authorization for requests to the Admin SDK.

Resources