Introductions and general questions relating to Box
Recently active
Hi Team, Is there a way to query a specific user collaboration ID to a specific folder using Box CLI? Best Regards
I wrote a blazor .net app to upload a file to box through a jwt box app I created. I’m properly setting the uploaduri. I can run other commands but when it comes to uploading a file with UploadAsync, I get the errors: ‘The SSL connection could not be established, see inner exception.’ Inner: AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch Has anyone seen this before and if so how to fix? Our support guy said this is more of a local setup issue and washed his hands of it. Hoping the community has seen this.
Hi everyone I have written PowerShell script to upload different files to needed folders in Box API call return normal response and the files appear in box, but just txt files have content. PDF are empty and for other files just download button. After download the files are broken. Request body contains boundary and the content of file gotten using StremReader. For each file type I sent its own Content-Type selected by extension. $fileName = (Get-Item $filePath).Name # Determine the content type based on file extension $contentType = Get-ContentType $filePath $line = '{"name":"' + $fileName + '", "parent":{"id":"' + $parentId + '"}}' # Open a FileStream to read the file content $fileStream = [System.IO.File]::OpenRead($filePath) # Create a stream reader to read the file content $streamReader = [System.IO.StreamReader]::new($fileStream) $fileContent = $streamReader.ReadToEnd()
In the document example response it has the metadata developer.box.com Search for content - API Reference - Box Developer Documentation Explore the Box APIs and SDKs to use for app development, API documentation, developer support resources, and access the Box Developer Console but when i search it did not return.
I have a server side application which needs to upload files to box I have it set up with Client Credentials Grant and using the OAuth 2.0 with Client Credentials Grant (Server Authentication) But when I try to make the curl request with Client ID kox474mes4cugrj929i4kh5enokukmlt I get the Grant credentials are invalid. Looking around, it seems to be related to a recent change where custom apps are not immediately approved. This is for a free account while we are trying to get it set up and working.
I am working on developing an app using the API, I upgraded my account to the starter pack because Box requires developers to pay atm. I can create an API agent and connect using the JSON provided but the account does not have visibility to the ‘root’ folder of the enterprise account, it seems it gets dropped off in its own place? I can put stuff there like new folders but I can’t find any of it in the admin console. I started as a free account, maybe the accounts are not linked properly? Maybe I’m doing something wrong?
Im sorry my English is not good. Can I change the permissions of the following co-administrators in the Box CLI? 【Users and groups】 ・Manage users ・Manage groups 【Files and folders】 ・View user content ・Editing User Content ・Logging in a user’s account 【Reports and Settings】 ・Viewing the company’s settings for the application ・Editing company settings in the app ・Running new reports and accessing existing reports etc. I checked the official Box documentation and the following sites, but I can’t find a way to do it github.com //github.com/box/boxcli/tree/main/docs
Hi Rui , We are having company account with Box site, where were using Webdev (using curl ) to upload files to Box site . “*/opt/bin/curl -vsiS -n -T product.zip https://dav.box.com/dav/Data%20Sharing*/” so from 5 years we have been uploading files to site.Now we came to know that webdev is being depricated .And it is no longer working. Could you please suggest how can we move forward with this. AFter going through developer documents i found the similar kind of things related to curl . curl -X POST https://api.box.com/2.0/files/content -*H ‘Authorization: Bearer DEVTOKEN’ * -H “Content-Type: multipart/form-data” -F attributes=‘{“name”:“Photo.jpg”, “parent”:{“id”:“121466666995”}}’ -F file=@Photo.jpg How can we get Authorization parameter for already created application . Thanks in advance
Hi Team, I am getting The API returned an error code [400] invalid_grant - Grant credentials are invalid error while connect to BOX . Authorization method : OAuth 2.0 (Server Authentication) with Client Credentials Authorization My account is a paid account
Hello, I’m working through creating my first application. I have my script working to create new users using the CLI. I am working on using the command for storage policies. When I run the command: box storage-policies:assignments:lookup $ManagedUserID I get “box : Unexpected API Response [404 Not Found | 04b98908e769f2e0] not_found - Authorization Failed” I’m sure this is due to some sort of permissions, but I’m not sure why. I created the application using Client Credentials Grant. I have given every permission except for “Generate user access tokens”. So far in my script I have not had to generate a token. To assign a storage policy do I have to use a token? Thank you.
Hello, currently I am using Box Web Interface to login and upload the files on Box. I would like to use Python to Authenticate and upload the files. I have gone through the documentation and I think I need a developer access for the same. I am using SSO to login into box. Is there a way to achieve this without BOX SDK or creating an app?
We have a requirement to upload document to a specific folder. I see to achieve that, we need to know the folder id, but we only have folder name. So I am trying to get folder Id by name, but looks like we don’t have an API for that, the closest one I found is /folders/{folder_id}/items, we pull all children items under a folder, then find the one whose name matches. The problem is that endpoint has a limitation of 1000 records for each call, and the offset also has a limitation of 10,000. So if there are too many folders, we will not able find the one we need, and even if it doesn’t have that many, the performance is too bad. So the question is, do we have such an API that getting folder Id by parent Id and folder name?
I have box account as individual. I have integrated box node sdk in my api server. I was passing my ACCOUNTID to authenticate box with getAppAuthClient method. But It was throwing "“Please check the ‘sub’ claim. The ‘sub’ specified is invalid.” Please can anyone help me on this?
Hello, My team has a custom domain enabled for our Box account, such that when we access Box, the domain is https://{company_name}.app.box.com. I am now trying to create a feature to programmatically generate an embed link for files in our company’s Box storage. To do so, I need to get the shared link of a file, which I know is detailed in the Box API documentation. However, as far as I can tell, this is only shown with the default API URL (https://api.box.com/2.0/). Given that we use a custom domain, what would the API URL be to get the shared link of a file?
Hi, I am trying to display file on a website simply using the preview like this: <div class="preview-container"></div> <script> var preview = new Box.Preview(); preview.show("FILEID", "DEVELOPER_ACCESS_TOKE", { container: ".preview-container", }); </script> Using the developer access toke works great, but it has a 60minute ligfe span, so I found this page which is about creating a JWT, so I implemented it and it creates a code as $access_code but its super long and therefore doesn’t work with the previewer when using like this: <div class="preview-container"></div> <script> var preview = new Box.Preview(); preview.show("FILEID", $access_token, { container: ".preview-container", }); </script> Any idea what I am doing wrong?
Hi I forgot my password with old email address which I can’t use anymore I have created new account using new email. Is it possible to get my old box account to new email address Thanks
I deleted an application on developers.box.com without removing the Public Key and now I cannot use the Public key in another application. How can I release the public key without having access to the deleted application? Login: aplicativo@pescar.app.br : pcscatao@gmail.com (Older user)
Hi, We have a requirement of transfer ownership to another account using powershell. Please provide cURL API request with parameters and body format. so that it will be helpful Thanks
Hello! I apologize if this is a silly question, but I am confused! Can someone help me figure out why this query isn’t working? I am hoping to retreive the file in question via the api (Box). The file is public and exists, but the response I get is 404 not found.
Hello, I have read somewhere that the service account has its own folder tree, apart from being able to collaborate with another user’s folder’s content. Is it possible to upload to/download from this specific folder tree? I’ve tried logging into the service account on the box website, but it redirects me to the dev account login. Thank you!
hi how can i do Not to expire this Developer Token? . is valid for 60 minutes
Hi all, I have a requirement where we need to move files from a network drive to a folder in Box based on few conditions. Conditions are: Files which are not accessed for more than 90 days should move to box, while retaining the folder structure that it had on Network drive. Not creating duplicate folders for each file, but creating sub folders if needed. Those who had permission on that file should carry over to box as well. Once the file is moved to Box, delete the file from network drive. If this can be automated to run weekly. Any ideas, suggestions. Appreciate it. Thanks
I’m BoxSDK beginner. I’m developping by using Python Box SDK. I’d created client by Json setting configuration file and sccessed authentification. I’d also createed BoxApp original folder and finished reading/writing folders/files in this folder. For next step I’d like to access target Box folder. How to access target folder? Is it enough to ask target folder owner to invite my BoxApp service account ****@boxdevedition.com? Service account information is not use when authentification. Does Box system recognize BoxApp(Client ID and private ID) and check available folder by service account from resistrated informations? Yoshio Uchikata
Is there a way to have BOX send emails in advance of password expiration? We primarily use Box via Salesforce and SF just reports an error when trying to access box from SF. That error doesn’t indicate that the password has expired or if there is a larger system access issue. If box-cli was able to determine last change date of a users password, then that could be used to send out notification emails in advance to users if there is not a native method. In using box-cli, I can see some basic user information, but not the password change date and I have a number of users whos password change date does not match the modified date so that isn’t a valid field to be using.
Hi All, I am attempting to integrate Box into SailPoint for access management. Since I am new to the Box application, I am having difficulty creating a private key password. Can you guys assist me by providing documentation on how to create a private key password using OpenSSL?
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.