Remove “Permanently delete” permission from consent screen google - google-calendar-api

I select https://www.googleapis.com/auth/calendar.events.readonly for consent screen still it ask for edit,share and permanently delete permission. Is there any way to remove "permanently delete" permission ?
Thanks

It seems that you are getting this consent screen because you are still using the old credentials.
Just because you had modified the scopes in the Cloud Console, it doesn't mean that these changes are reflected in your application automatically as well.
When only the https://www.googleapis.com/auth/calendar.events.readonly scope is selected this is how the consent screen looks like:
What you should do:
Download the credentials.json file again (and if needed replace the old one) such that the change you made is reflected properly in the file and therefore in your application.

Related

Locking Quiz - Preventing opening another window during quiz

Is it possible to get an app script code to stop users from opening another window/ tab while filing up a form/quiz? What are the other possible solutions?
I don't think this is possible via Apps Script code. However, there are different ways you can achieve this depending on devices users log in to. For instance, there is this option Use locked mode for quizzes for ChromeOS devices. Furthermore, if you have Google Workspace users, you can block by URLs using a Local policy or remotely from the Admin console. These last 2 options, block users from navigating to other web URLs by using the wildcard "*" except the URLs you specify in the "Exceptions".
If you have other browsers installed in users'devices, then you can create a temporal Context-Aware access rule as specified in these steps. With these rule and the correct Google Workspace edition, you can block access from any other browser except Chrome.

How to fix firebase index issue?

While launching the react native expo app,got this prompt.
The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/production-a9404/firestore/indexes?create_composite=Ck5wcm9qZWN0cy9wcm9kdWN0aW9uLWE5NDA0L2RhdGFiYXNlcy8oZGVmYXVsdCkvY29sbGVjdGlvbkdyb3Vwcy9jb2lucy9pbmRleGVzL18QARoMCghhdXRob3JJRBABGg0KCWNyZWF0ZWRBdBACGgwKCF9fbmFtZV9fEAI
When I clicked, the google console showing error as below.
But, this one worked earlier for a different collection and when trying for a new collection, getting this.
Please suggest.
It looks like you're signed in with an account that doesn't have permission to read or create indexes.
You should open the link from a user account that does have those permissions. When you do that, you'll see a screen that has all information prepopulated, and you can create the index with a single click (and some patience).

Firebase Crashlytics links from mail, redirect to error-page, due to wrong Chrome user

Setup:
having a firebase project with crashlytics active
receive mails for crashes
try to open the crash from the link within the mail
Example link: https://console.firebase.google.com/project/xxx-8c64/crashlytics/app/android:com.example.project/issues/3fgdfgfdg9e86f653d84df9fdfdfdf3?time=last-seven-days
I have multiple accounts in chrome. One is my private, one is my work account.
My main account is the private one. (/u/0)
Now, once I try to open the link
result: get redirected to wrong user https://console.firebase.google.com/u/0/
expected result: asking which account I want to use to open the link
My current workaround is to stop loading the link in the middle and replacing the u/0 with u/1 and let chrome continue. This will load the link correctly. But it will not always work and is super cumbersome.
Is there anything I can do? Do some of you face the same problem?
(Besides logging in with my work account. No - I don't want to log out from my main and switch forth and back all the time)
Okay I found a way, although I would love to hear a better one.
Using a redirect chrome extension. Redirector
github Link
Chrome Extension Link
RegEx:
From: ^https://console\.firebase\.google\.com/u/./(.*)
to: https://console.firebase.google.com/u/1/$1

How do you add a NODE to your database root in the Firebase Realtime Database Console?

The Console ONLY allows you to add a CHILD to the root. You cannot add a NODE in the Windows Console or in the Chrome Console.
So, if I got the question right, the following is desired:
/db-root
/newly-added-node-1
/newly-added-node-2
...
Had the same problem recently. There was also such a warning in the Firebase database console section:
Read-only & non-realtime mode activated to improve browser performance. Select a key with fewer records to edit or view in realtime.
If this is the case, you can simply add a node through the URL string. So, just visit:
http://console.firebase.google.com/project/${project-id}/database/${db-root}/data/${new-node-name}
And you'll be able to add data to the new node.
Hope this helps. Cheers!

IIS7 Admin read/write access to folder

I have an ASP.Net website running on IIS7. The developers have created a CMS in the \admin folder, which allows the website admin to create/edit/delete pages.
They have said:
"The read/write permission should be given to the user that requires login access to the admin panel, not the anonymous user that has general public access to the website. The reason for the write permission is to allow the administrator to be able to upload images and files through the CMS, and make various changes to the navigation, style sheet, etc".
Also, they have said:
"Password protect the /admin folder and assign full rights to your admin user as it needs to update data (site files) accordingly as mentioned in the Folder level section above. For certain modules to work, such as the file manager, you would need to use Basic Authentication at the Directory Security level. The FCKeditor folder also should be protected so it has the correct permissions. "
Is this approach safe? I have tried assigning full rights to the Plesk protected folder user (the \admin folder is protected through Plesk), but Plesk keeps reverting back to its default settings. I am told this is a security measure, which makes sense.
What would an alternate way of accomplishing this be without rewriting any code?
If the application needs the ability to upload then it will always need read/write permissions to the directories it is going to upload to - no amount of rewriting will change this, it's part of the basic functionality. The same applies to editing stylesheets etc.
Reverting changes you make sounds like a very bad security measure - warning you would be fine, but generally you make these changes for a reason and want them to stay.
Hay try this...
Right-click the file and select Properties.
Click on the Security tab.
Click Advanced in the lower right.
In the Advanced Security Settings window that pops up, click on the Owner tab.
Click Edit.
Click Other users or groups.
Click Advanced in the lower left corner.
Click Find Now.
Scroll through the results and double-click on your current user account.
Click OK to all of the remaining windows except the first Properties window.
Select your user account from the list up top and click Edit.
Select your user account from the list up top again and then in the pane below, check Full control under Allow, or as much control as you need.
You’ll get a security warning, click Yes.
On some files that are essential to Windows, you’ll get a “Unable to save permission changes… access is denied” warning and there’s nothing that you can do about it to the best of my knowledge.
Reconsider why you’re using Windows.

Resources