Problem with get referssh token when I try login with organization mail

Amir Ben Shimol 0 Reputation points
2023-10-09T09:21:42.1733333+00:00
When I try to connect with a corporate user I don't get a refresh token, with a regular user I do manage to get one.
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,137 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,594 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,548 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChengFeng - MSFT 5,020 Reputation points Microsoft Vendor
    2023-10-17T02:13:31.9366667+00:00

    Hi @Amir Ben Shimol

    I think if you use the Graph api in your application, you need to grant the required permissions to Onedirve or outlook's API.

    For example, if you need to list all messages, then you need these corresponding API permissions

    User's image

    But the most fundamental problem is that your corporate user account still has insufficient permissions. You need to contact your administrator and ask him to grant you the corresponding permissions.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards

    Cheng Feng