WSO API Manager tutorial - wso2

I am trying to create and publish a new API, but at the end of the creation of an API I don't have the button "save and publish" I just have "save" so my API is correctly created but not published. Is there anyone who can help me for doing that?
Thanks a lot

I think the logged in user does not have relevant permissions to publish the api. See https://docs.wso2.com/display/AM1100/Adding+User+Roles for relevant user roles for each type of user level and check whether the logged in user has the permissions related to 'publisher' role. If user does not have the publisher permission, he only can create the api.

Related

APIs not visible in Publisher portal and Devportal in WSO2 API Manager

So I have been working on this issue for quite a while now. Earlier we thought its a re_indexing issue so kept re_indexing it which didn't helped at all.
So We started looking into roles and permission and noticed that the APIs are not Visible to admin only.
I tried creating another user account and just gave admin role to it and it worked. Every Single API is visible to this new user with admin role both in publisher and devportal.
Also checked visibility of APIs and its access is set to ALL in publisher portal and public in devportal.
This is getting annoying as admin is supposed to have all the permissions right but here its opposite. Please help someone

Get django permissions for logged in user to show/hide menus according to user role

I am new to django and am working on a django project, where I want to show/hide menus in accordance with the permissions a logged in user has. I am using Django Rest Framework and JWT. I did not find any url in rest_auth.urls to fetch all the permissions logged in user has. Can you please help me, how would you go about it ?
Your UI should not go through the permissions itself. Instead, it should send a request to the backend, and in a Django View you can check the permission and send a response to the UI.

Any way to get "Employee Details" from Google API?

Is anyone aware of any Google API with the user scope (NOT the Admin API in the Directory SDK) that allows you to retrieve the custom employee attributes?
The G+ API seems to skip these
https://developers.google.com/+/web/api/rest/latest/people#resource
Our issue is that we don't want to grant access to the developer console, but rather do this PER-USER. I.E. a user logs into our app and we display to her the custom attributes for her G Suite account, but we do this as her (not as an approved API scope via the dev console).
Leaving this answer for anyone like me who finds this question.
The Directory API allows a user to query the custom attributes for their account even without any admin permissions at all.
https://developers.google.com/admin-sdk/directory/v1/reference/users/get
You need to ensure that projection is set to full and viewType is set to domain_public.
You may need to check the permissions for reading the custom attributes to ensure that a user is allowed to see theirs. We do this in the Google Cloud Directory Sync.

Transfer Google API Project ownership from an unreachable user

We're using Google Analytics API in our application and perform actions (read data) on behalf of our users (we get their tokens via OAuth2). We use a client id and client secret to authorize our Google API project (application).
The problem is that we're unable to reach this project in Google's developer console, because the user in our Google App account who created this project was deleted. Regardless, the Google API still works (we have the key and the client secret) but we're unable to reach it in the admin section in the browser, but we can't access it because the owner was deleted.
What are the options to recover access to this API project? Is it possible to transfer ownership of this project using Google API? It's running in production so we can't afford to generate a new API project.
Is it perhaps possible to generate a new API project by keeping all our users consents (they authorize their accounts using an authorization popup in our web app)?
EDIT: it's also possible the user still exists, but we don't know who's the owner. Is it possible to retrieve this info using the app's api key/secret?
How to find out who owns your credentials.
Authenticate your application the pop up window will appear. Click on the name of the application the little arrow and a drop down will apear with the email address of the developer who owns the project.
If you have lost access to this account i am not aware of any way of getting access back. However for the sake of curiosity i am going to contact someone at Google and find out if they have a procedure for account recovery or not. I will update this when i hear back.
If the account that has a credential was a gsuite user then we can transfer the project to the admin of the domain.
Have the admin of the GSuite contact me with information on the project, client id, email of the user who was deleted. We can then add the admin of the gSuite as the owner of the project.
From the question, this was likely a gsuite user because even after the account is deleted, the project was not deleted.

Facebook API page subscription

I am trying to subscribe other's Facebook user's page to my application. Application has permissions like pages_messaging, public_profile, etc. Basically this is a messenger. But it complains and keep saying that I need a "manage_pages" permission. Why? I can't find docs in FB api regarding it. Thanks
Hi you should apply for manage pages permission in your app.To create a subscription you should have the manage_pages permission.
https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps