Creating folder in external folder
Hello,
I have tried to authenticate with both Oauth2 and JWT for my python application, but i can see only the folders that are created by this application and unfortunately i can not access any other external folders created by others.
Can you tell me if there is an example of authentication proper to handle with external folders please en python because official documentation is missing some import information.
Thank you
-
Hello,
By default application operates in a Service Account scope, which is separated from other users: https://developer.box.com/guides/getting-started/user-types/service-account/
You can look into Python documentation to read more about how to authenticate as a user:- for JWT: https://github.com/box/box-python-sdk/blob/main/docs/usage/authentication.md#server-auth-with-jwt you can obtain client authenticated for specific user (you will need to enable in application Configuration: Generate user access tokens)
- use as-user header: https://github.com/box/box-python-sdk/blob/main/docs/usage/authentication.md#as-user which you can use with both OAuth or JWT (you will need to enable in application Configuration: Make API calls using the as-user header)
Post is closed for comments.
Comments
1 comment