Is there an admin API(org level) in Atlassian to revoke a specific product access for a user? - confluence

The API provided in Atlassian documentation will revoke access from a user to all the products under their hood .
For example:
An user named Sarav uses Atlassian products jira,confluence,bitbucket. When the admin wants to revoke access to only confluence, the API provided revokes access to remaining other products aswell.

Related

Github graphql query based on username in the organization

Is there any github graph query which fetches repos based on the username in organization.
Example:
Let's say in the org testOrg, we have around 1000 plus users and each user contributed to multiple repos.
I need the query to fetch all the repos that a particular user contributed.
Here we are not using the user's Personal Access Token in Authorization. We registered an app at org level and we are using the that App Token in Authorization.
So how to query the repos that a particular user contributed, based on user's github userid and using app token as authorization toke

How to list the scopes granted to a specific application

A React application has a standard OAuth flow that grants access to Github with no scope. The user can go through another OAuth flow to grant repo access to the application. How can the application tell if the user has granted the repo scope or not?
This looks like it would be doable using the /application/grants API, but that API is scheduled to be deprecated and it only accepts Basic Auth. What's the replacement?

API access to BIM360 trial accounts

According to published documentation, BIM360 trial accounts and accounts with less than 100 Users are not allowed to enable API access. In that case, when a user adds a ‘BIM360 app’ from store to his/her account, how does the added 3rd party app obtain access token when user directly logs into that app (after adding to BIM360).
Thanks
The Data Management API provides access to all Autodesk hubs, including BIM 360 Docs hubs (i.e. files). The BIM 360 API provides access to management of the account (e.g. create projects, add users, etc.).
Being an enterprise application, different users will have different levels of access, so only the Admin (1+ users) of the account can authorize an app to access its data, this is the provisioning step. This blog post suggests how apps should request their users to perform the steps. The provisioning process it's manual due security (i.e. the admin must explicitly integrate the account with the app)
By default, any new BIM 360 account is not API-enabled, so you need to request following these steps.
After provisioning, any user from that BIM 360 account that sign into your app will have permission to see the files he/she is allowed to. Here the 3-legged access token has the same level of permission as the user who authenticated.

How to generate Facebook Marketing API access token to use it in Windows application

I am using Facebook as advertising platform to promote my application on Apple and Google stores. I would like to make windows service which will download daily report(s) about advertising status of my marketing campaign running one Facebook, preferably using 60 day token, or some permanent solution so that token is retrieved when required. I think that i understand everything to do this except how to generate access token to use it with Facebook Graph API. Which token for which Facebook account do I need and how to obtain it?
You'll need a Facebook app and to grant that app the ads_read permission in order to retrieve reports about your advertising efforts via the API (source).
You'll want a long-lived token so that you don't have to re-authenticate very often. The access token documentation details the steps to exchange a short-lived token for a long-lived one.
You may also want to consider managing the app, ad account, and access tokens (via a business system user) with the FB Business Manager.
Create a facebook app.
Go to the Graph API Explorer in Facebook's Tools & Support section.
Pick your app from the drop down.
Hit Get Token > Get User Access Token.
In Select Permissions choose required permissions or select them from extended permissions.
Use the user access token that will be presented to you in the access token form input field.

How to revoke a permanent Facebook 'page' token with API v2.2?

I've created an application that only stores Facebook Page tokens. My application publishes content to pages.
I'm migrating from v1.0 to v2.2. I used to revoke Page tokens by calling a DELETE on /me/permissions. But now the API returns:
Unsupported delete request. Please read the Graph API documentation
at https://developers.facebook.com/docs/graph-api
How can I delete a page token with the new v2.2 Graph API?
I'd file a bug if there is a feature in 1.0 that hasn't been listed as removed in the change log.
On the other hand, I've never heard of such a call. If it existed, it's either a really old call or a bug in the API.
If you revoke a fan page token, how would you reissue it?
The only token you can revoke to my knowledge is the user token.
In addition, I tested a few 1.0 applications and no such call exists.
Page tokens are not revocable. Only user tokens are revocable.
This is not done via the API, but as the page admin, you can revoke access previously granted to an app. You do so via your profile settings on a section called business tools. This section allows you to view apps with access and revoke their access, immediately invalidating page access tokens granted by you to that app.
https://www.facebook.com/settings?tab=business_tools