How do I able to upload files on onedrive without the consent of admin account and just by user account?

Rishabh Seth 1 Reputation point
2022-09-05T08:36:02.6+00:00

I 237774-screenshot-2022-09-05-at-15838-pm.png

Our focus is to ask user to give permission to upload files on their onedrive account. We don't want the admin's consent. We have mentioned all the permissions mentioned in this link - > (https://learn.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-1.0). Still every time we ask for the consent of the user, we receive an error that admin's consent is required to upload files. I need a proper guide on how to properly implement this feature.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Authenticator
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Luke Murray 11,436 Reputation points MVP Volunteer Moderator
    2022-09-05T09:38:44.853+00:00

    Hmm, I thought if admin consent isn't given, then doesn't everyone need to consent at least once their first time? So there is consent either way - doing admin consents for everyone.


  2. Srinivasa Rao Darna 6,761 Reputation points Microsoft External Staff
    2022-09-05T15:44:11.11+00:00

    Hi @Rishabh Seth ,

    You are probably receiving these error that admin's consent is required to upload files, because your tenant admin must have disabled the option for users to consent to apps.

    To configure user consent settings through the Azure portal:

    • Sign in to the Azure portal as a Global Administrator.
    • Select Azure Active Directory > Enterprise applications > Consent and permissions > User consent settings.
    • Under User consent for applications, select which consent setting you want to configure for all users.
    • Select Save to save your settings.

    Refer to configure-user-consent for more details.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.