Getting "permissionPreset" and "emailPermission" using google admin-sdk api - google-admin-sdk

How do I get "permissionPreset" and "emailPermission" using google admin-sdk api? Here also I didn't get. https://developers.google.com/admin-sdk/directory/v1/reference/groups/list Can anyone please shed some light on this?
TIA
Riyaz.A

There are no such values returned by the Directory API. You can get and update group settings using the Group Settings API. This offers much more fine grained options than the old Provisioning API settings did.

Related

CLI/SDK to create Google-cloud oAuth client

Is it possible to create an OAuth client (https://developers.google.com/identity/protocols/OAuth2) using a script (gcloud or any library)?
Google recommended way (https://developers.google.com/identity/protocols/OAuth2WebServer#creatingcred) is to manually create from https://console.developers.google.com/apis/credentials.
I have multiple apps with different url_redirects like https://a.domain.com, https://b.domain.com https://c.domain.com, https://d.domain.com, this subdomain list is large to manage manually.
I want to automate this process for my use case. I'm not able to find any library to do this.
Update: Endpoint used by GCP console https://clientauthconfig.clients6.google.com/v1/clients and there is related permission also "clientauthconfig.clients.create" but there is no API provided for it.
You would need API client to create new API client anyway. Is it really necessary for you to create it this way? You can rather create multiple "user" credentials for your application using only that one API client.
I think you are looking for something like this, hope Java is good for you.
I've also found the following relevant information that might help you. Link
Also relevant for you. Link
Let me know.

Does graphene-django dynamically create an API documentation?

I'm considering using GraphQL with a Django backend service but I couldn't find much information regarding the API documentation. I need some solution to dynamically generate the documentation, perhaps like npm's graphql-docs with a result similar to GitHub's API docs.
Is it feasible to accomplish with graphene-django? If not, what's a good alternative for a python environment?
Yes, it's very easy to do by using GraphiQL, which is embedded in to Graphene.
The instructions on how to integrate this with Graphene are here in the graphene-python documentation. --- basically you need to add the parameter graphiql=True when setting up the API route in your urls.py file.
After it is set up, if go to your API endpoint in your browser, you'll see a nice interface for sending API calls, getting API responses, and reading documentation for both queries and mutations. The documentation is initially hidden on the right until you click on the "< Docs" link.

How do I host a Django project on Google Cloud Platform?

Can anyone tell me how I can easily host my Django Project on Google Cloud Platform ?
Links to a detailed video guide are highly appreciated and Thanks in advance.
I find the documentation so convoluted, tedious, and non-user friendly and so need help to figure out the right way to host my Django based project.
The best way to deploy your Django project in the cloud is using a micro VM, or you can use google app engine but I don't have experience with that so I can't help you with that.
First create a VM instace if you don't know how you can read this then you can read this tutorial how to setup a Django tutorial in a Linux machine . Hope it helps
Google Cloud Platform has multiple product offerings, you need to decide on one which best fits your particular case.
IMHO you should start here to decide: Getting Started With Django

WSO2 Enterprise Store 1.0.0 : modify login process in Identity Server

I am working with Enterprise Store V1.0.0. For now, i use a users store linked to my LDAP for authentication, which is working fine.
However, all my web applications used a tool for auto login, i mean that a user is automatically logged in the app thanks to this tool. I would like to modify ES to integrate this tool.
After sometimes spent in the code, i think that the entry point should be in the Identity Server. I tried to get the code, modify it and use it with ES, without success. My problem is that i don't know where i can get the good version of the code. I found that the .jar file is generated with the pom.xml in product-es\modules\p2-profile-gen\, but i don't know where is the code i need.
If someone could help, it would be very much appreciated.
Thanks in advance.
Regards,

How can i see Google Mirror API at Google APIs console

I followed this article: https://developers.google.com/glass/quickstart/java
and try to create a Google APIs Console Project.
But in Services tab I don't see Google Mirror API to enable it!
Try again. At the time you asked the question, the Mirror API was behind a whitelist, but that whitelist has since been removed. Now anyone can enable the Mirror API.
It seems its not available to everyone. Follow this thread and it becomes clear.
https://plus.google.com/+GoogleDevelopers/posts/cwWuUY6xYKW
However, it seems you can try it out on https://developers.google.com/glass/playground.
I just picked up my Glass today and they manually enable the Mirror console once you pick up. Even after they whitelisted me for the API, it took about 3 hours to be activated on my account.