I'm trying to read members of a google group using the following api:
https://developers.google.com/admin-sdk/directory/reference/rest/v1/members/list
but in response I get
{
"error": {
"code": 403,
"message": "Not Authorized to access this resource/api",
"errors": [
{
"message": "Not Authorized to access this resource/api",
"domain": "global",
"reason": "forbidden"
}
]
}
}
I'm a member of the group, but it seems that I need something more to be able to read the other member. Anyone know what are the required permissions to do that?
Related
I tried to create new dialogflow intent through postman. It is working in API Explorer but I can't able to connect dialogflow with postman. For doing this I have created some credentials,
New API key in GCP project
Oauth credentials in GCP project
Bearer token from google cloud SDK shell
Here I have used same API in postman but can't able to connect. How can I troubleshoot this?
{
"error": {
"code": 400,
"message": "API key not valid. Please pass a valid API key.",
"status": "INVALID_ARGUMENT",
"details": [
{
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "API_KEY_INVALID",
"domain": "googleapis.com",
"metadata": {
"service": "dialogflow.googleapis.com"
}
}
]
}
}
I am trying to test https://admin.googleapis.com/admin/reports/v1/activity/users/{userKey or all}/applications/{applicationName} in the browser using the API explorer utility but I am getting below error.
{
"error": {
"code": 401,
"message": "Access denied. You are not authorized to read activity records.",
"errors": [
{
"message": "Access denied. You are not authorized to read activity records.",
"domain": "global",
"reason": "authError",
"location": "Authorization",
"locationType": "header"
}
]
}
}
I have enabled all the necessary API scopes for the OAuth client. below is the screenshot of the scopes that I have enabled for my client.
The user which I was using along with the service account didn't have proper permission to access some of these APIs. I switched to a subject user with all necessary permissions and it started working fine for me.
I am trying to upload files to google cloud bucket through google cloud console, but I am getting 'Something went wrong' error on UI. Following is the response error I am receiving:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "No such object: thesis_experience/Abdul Hameed-61058 a.f lecturer.txt"
}
],
"code": 404,
"message": "No such object: thesis_experience/Abdul Hameed-61058 a.f lecturer.txt"
}
}
I have uploaded many files earlier as well, but I have no clue why is this happening to me now. I tried to create new buckets and upload files there too, but receiving the same error.
While trying to fetch a delegation token from Auth0 to access S3 bucket on AWS I am getting this error:
{
"error": "invalid_request",
"error_description": "Missing principal parameter"
}
Here is the body of the request:
{
"client_id": "HIDDEN CLIENT ID",
"grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
"id_token": "HIDDEN ID TOKEN",
"target": "HIDDEN TARGET",
"api_type": "aws",
"role": "HIDDEN ROLE ARN"
}
There could be other solutions but how I got it to work was to:
Replace,
"api_type": "aws"
With:
"api_type": "aws:s3"
OR:
"api_type": "aws:x" (where x is any AWS service code that you are trying to access!)
I'm using Postman to add a Webhook to a SharePoint List and am having an permission issue:
POST https://[Company].sharepoint.com/sites/Test/_api/web/lists('80105E8F-2CEA-4D49-8238-2A1829B46494')/subscriptions
Body:
{
"resource": "https://[Company].sharepoint.com/sites/Test/_api/web/lists('80105E8F-2CEA-4D49-8238-2A1829B46494')",
"notificationUrl": "https://MyFunctions.azurewebsites.net/api/HttpTriggerCSharp1?code=[ClientCode]",
"expirationDateTime": "2017-09-27T16:17:57+00:00"
}
Response:
{
"error": {
"code": "-2147024891, System.UnauthorizedAccessException",
"message": {
"lang": "en-US",
"value": "Access denied. You do not have permission to perform this action or access this resource."
}
}
}
I'm the SharePoint Site Collection Administrator and I can successfully list the current webhooks (there are none).
I'm listing the current webhooks with the following command:
GET https://[Company].sharepoint.com/sites/Test/_api/web/lists('80105E8F-2CEA-4D49-8238-2A1829B46494')/subscriptions
Response:
{
"d": {
"results": []
}
}