I try to edit Out Of Office of other user.
In example, User "A" is connect in the application and try to edit User "B" Out Of Office. But I get "Access is denied. Check credentials and try again".
The Credentials of user A is correct and I can edit my own MailboxSetting.
I use this permissions: "User.Read", "User.Read.All", "MailboxSettings.ReadWrite", "Calendars.ReadWrite".
I use this URL: "https://graph.microsoft.com/beta/users/B/mailboxSettings" with PATCH method.
I try different user profile, but nothing works.
Someone already try to do this and success ?
If yes, what is the permissions or user's profile ?
Thanks for your help
An issue is open on the Microsoft Graph GitHub
https://github.com/microsoftgraph/microsoft-graph-docs/issues/3289
Related
I have logged into the graph explorer https://developer.microsoft.com/en-us/graph/graph-explorer but when I try to retrieve a list of all files in my onedrive I get a 404 response, any ideas of why that is?
update, when I click the user account I see that I need to consent to permissions, and after I log on as the administrator I can consent to the permissions, but after I go back to the graph explorer and sign in with the user account (not the admin account) I still get the 404 error, and if I once more check the permissions they are gone?
I tried to repo the same , and i am getting list of all items in OneDrive .You are getting "error 404 - Page Not Found" which you entered wrong URL , make sure you call correct URL - https://graph.microsoft.com/v1.0/me/drive/root/children
Sorry I had given the wrong permissions for this
I want to use microsoft graph API in my application without user. For I got access token by tenant id (a8ef7dd1-217d-430f-9ba0-4dd465b9098d) using this url
https://login.microsoftonline.com/a8ef7dd1-217d-430f-9ba0-4dd465b9098d/oauth2/v2.0/token
I see correct result after this request.
Afte that I try to get user using this url
https://graph.microsoft.com/v1.0/users
It also works fine for me.
Example response: {"#odata.context":"https://graph.microsoft.com/v1.0/$metadata#users","value":[{"businessPhones":[],"displayName":"IOTA CLM","givenName":"IOTA","jobTitle":null,"mail":null,"mobilePhone":null,"officeLocation":null,"preferredLanguage":null,"surname":"CLM","userPrincipalName":"clm-iota_outlook.com#EXT##clmiotaoutlook.onmicrosoft.com","id":"50ecbaed-9cee-411f-abb6-5e53e2a1051a"}]}
But if I try to get mailFolders using next get request
https://graph.microsoft.com/v1.0/users/50ecbaed-9cee-411f-abb6-5e53e2a1051a/mailFolders
I see 404 error :
"code": "ResourceNotFound",
"message": "Resource could not be discovered."
What I missed?
Are you sure that that user has a mailbox?
Make sure you have the correct permissions? To access mail, you require Mail.Read application permissions that have been admin consented. https://learn.microsoft.com/en-us/graph/api/user-list-messages?view=graph-rest-1.0
You can admin consent where you've registered the application in the portal in the "Permissions" tab of the application. https://aad.portal.azure.com
I've had the same error.
You probably didn't assign a license while adding users at https://admin.microsoft.com
If you go to the Microsoft site, you will find that you need to license Exchange Online to use the Exchange Online feature.
https://learn.microsoft.com/en-us/exchange/exchange-online
Check it out!
When querying the Graph with the PHP library for a given drive I receive 400 Unable to retrieve user's mysite URL or 429 Too many requests.
When I call for example https://graph.microsoft.com/v1.0/users/b0633c25-2655-4dfe-a2b2-078e4310deba/drive with the PHP library it gives this weird result. When I query the same url in the Graph Explorer. It works like a charm.
I've set up the permissions as described in the docs and have the E3 Developers subscription that is still valid.
What am I missing?
The error message is misleading and does not mention billing as it should.
Check your Billing > Your Products (subscription) in your Microsoft 365 Admin and then try again.
The best way to test is:
https://developer.microsoft.com/en-us/graph/graph-explorer
The current error seems like user does not have ODFB(OneDrive For Business) site created, you can check if the user have create OneDrive site(the OneDrive site will be created while the user first time to use it).
To debug that issue for now, try to use Graph Explorer https://developer.microsoft.com/en-us/graph/graph-explorer# and login with your user account.
If you can access /me then try accessing /me/drive/root and you will get details about ODFB Doc Lib for current user if it exist.
we can get results with the following link for login-in user
https://graph.microsoft.com/v1.0/me/drive/root/children
Reference for you: https://github.com/microsoftgraph/microsoft-graph-docs/issues/1354
Please help with below error. What could be the reason behind this error ?
SFAuthenticationManager|oauthCoordinator idFailWithError: Error
Domain=com.salesforce.OAuth.ErrorDomain Code=666 "user is not admin
approved to access this app" UserInfo=0x17d4e5f0
{NSLocalizedDescription=user is not admin approved to access this app,
error=OAUTH_APP_ACCESS_DENIED}, authInfo:
Thanks
It means that you are trying to authenticate but the user you are trying to authenticate doesn't have mobile (or remote, or whatever the setting is named) access from their org's administrator. You need your permission levels changed.
If I am an admin of a page. I create an app which able to post to my own page. What I have done before, I use "Graph Explorer Tool" to extend the "offline_access" then I get the token code to use when post. It work fine in the past.
Now, when I click on "Get Access Token" , goto Extended Permission, then check "offline_access", click ok. It is not remember the offline_access.
And there are no "deprecate offline_access" in advance of the app.
If someone can make it work, please share! would appreciate! Thanks
EDITED: Jan 09, 2013
After i make it work, I post the solution if someone have same problem as me.
Tool:
1- Debugger (https://developers.facebook.com/tools/debug)
2- Graph Explorer (https://developers.facebook.com/tools/explorer)
Requirement:
You can manage an app and facebook page
To do:
1- Enable App to Manage Page: Goto "Graph Explorer", Select your application, Click on "Get Access Token", Go to "Extended Permission" check on "manage_page"
2- Exchange the short-lived token for long-lived token: This can be done by open this link on browser. But before you do, you need to replace your own information.
https://graph.facebook.com/oauth/access_token?client_id={YOUR_OWN_APP_ID}&client_secret={YOUR_OWN_APP_SECRET}&grant_type=fb_exchange_token&fb_exchange_token={YOUR_OWN_SHORT_LIVED_TOKEN}
After you open this link, if everything is ok, you will get new access token code. Use Debugger to check this token, you will see this token can live in 2 months.
3- Get Page Access Token: Copy the token code from step 2 to Access Token: Box, Then Query "me/accounts", you will see your page show as JSON data on the box on the right. You will see "access_token". Copy that access_token code and use debugger tool you will see that the Expires should show Never. Use that token when you create post to facebook page with life time access.
Now, when I click on "Get Access Token" , goto Extended Permission, then check "offline_access", click ok. It is not remember the offline_access.
That’s because offline_access does not exist any more.
And there are no "deprecate offline_access" in advance of the app.
The migration is not available any more, because the process of deprecation has been finished with removal of the permission.
If someone can make it work, please share!
Please do some research!
The deprecation of offline_access and how to handle it has been discussed here over and over again.
Start here, https://developers.facebook.com/roadmap/offline-access-removal/, and then search SO or the web if there are still things unclear to you.