Edit GMB OAuth Scopes - oauth-2.0

I am using OAuth 2.0 to get access to view, create, edit and delete our clients/users' GMB listings. But I don't want to get access to delete their listings/locations, only want to get access to view, create, and edit.
In the screenshot I attached, you can see, google ask for delete permission also, so how I can edit scopes to not get permission for delete. Google should show only text for view, create and edit.
This is the scope (https://www.googleapis.com/auth/plus.business.manage) I am using for all permissions of GMB listings.

There is currently no sub-scope that offers what you are looking for.
NB: You should be using https://www.googleapis.com/auth/business.manage instead of the "plus" version as that one is deprecated.

Related

How to set proper google oauth client scope that don't need any access right of end user data?

I am learning to access Google Sheets using Python (c/q gspread)
my current script is as simple as one from here.
gc = gspread.oauth(
credentials_filename='path/to/the/credentials.json',
authorized_user_filename='path/to/the/authorized_user.json'
)
It displays a login screen like:
That screen tells my enduser that my script will able to:
See, edit, create, and delete all of their Google Drive, and/or
See, edit, create, and delete all of their Google Sheet spreadsheets.
I'm pretty sure that two things will scared my end user.
Is there any 'scope' that will only give my script to a sheet that shared to my endusers account and the access right is following what sheet owner set for each endusers.
The best scope to use in your case is https://www.googleapis.com/auth/drive.file. This is a flexible scope that will be granted individually in a per-user basis.
Of course, if you want to be as restrictive as possible the best scope is https://www.googleapis.com/auth/drive.apps.readonly, but its functionality is pretty limited (as the same says, only reading and no editing).
You can read more about the different scopes here.
Unfortunately, you cannot get rid of the authorization screen, you can read how Google authorizes access to the APIs with OAuth here.

Graph unable to update permissions for an external user

Recently something is changed the way Graph is handling permissions on drive items for external(outside tenant users).
Previously when we give access Write access to an external a unique link was created per user that we can do a patch call to update the roles if we want.
Now only two links are created one which is common for all externals having write role and one for read role.
I could not find a way if I want to update the role of an external from write to read or vice versa without removing all external users with write and adding them again.
Is there a work around to update permissions for external. The documentation is also pretty old its not updated since 2017.
Note: This is the Endpoint we are using/recommended to update permissions.

Filter a model on the add page for that model (Django)

I need to attach a filter to a model when the user is adding a new entry via the admin page, similar to the way that there is a filter for permissions on the add group page of the admin page. From what I have researched it seems like I need to use a formfield_for_ … method, but I cant seem to be able to make that work

Can access codes be created with the Eventbrite API, like discount codes?

I've been able to create discount codes using discount_new, is it possible to create access codes with the API too?
I don't see a method on http://developer.eventbrite.com/doc/#methods for doing that and discount_new doesn't seem to support it.
I'd like to create customized access codes that allow people to sign up for hidden tickets, such as a volunteer ticket, for example.
You can now get, create, and update access codes using the following api endpoints:
event_list_access_codes
access_code_new
access_code_update
Documentation to follow soon, but usage is similar to that for discount codes. In order to create a new access_code, the corresponding ticket needs to be hidden. If the "tickets" parameter is not specified, the access code will apply to all tickets (and they all need to be hidden).

SharePoint Web Part Access Denied error

I have a list in my sharepoint site.The users who have contribute access is able to add items on the list.But recently some users who have contribute access was not able to add new item.The normal work around we do is we will add them to the owners group and ask them to login .Then we ask them to logout and remove them from the owners group and issue will be resolved.But the proper way shouldn't be like that.Please give the proper way to solve this issue.
The users whom you talk about, Were they added to the contribute group recently? May be the list is not inherting permission(?)
You can use this WebPart (http://accesschecker.codeplex.com/) to check individual acces to every list, lib etc in your SharePoint site.

Resources