Sharepoint connection

Hello, I was reading the documentation for package, how to use Sharepoint with UiPath, but I have trouble with connection.

The browser easily open the URL.
The sharepoint activity causes error message about: Expception encoutered when trying to login to the Sharepoint instance: Cannot contact web site https:// … or the web site does not support Sharepoint online credentials. The response status code is Unauthorized.

I created variable via get password activity and variable for username with default value and use them in the Sharepoint application scope activity.

Do you know , what is wrong when broswer works and sharepoint connection not?

Br,
Petra