We’re now handling and processing events coming from Slack, then obtaining all
information needed to connect with Box users and groups. We now need to
connect that functionality to Box functions.In this step we’ll expand several functions from the last step to incorporate
new Box features.
Let’s add a function that adds a Box user to a group. When a bot is added to a
channel and needs to create a Box group with all users of the channel, or when
a single user joins the channel after that action, this function will perform
that task.Since we’re matching a Slack user to a Box user via their email address, we
first find a matching Box user using the Slack profile email. If found, a call
is made to add that user to the channel group. The group was created when the
bot was first added.
The Box endpoint only permits user lookup
by user ID. To lookup a user by email address, use the
endpoint and set the
filter_term option to the email address you’re searching for.
When a user leaves or is removed from a Slack channel, we also want to remove
them from the Box group so that they can no longer access the shared group
content.This code will take the group ID, which will be the Slack channel ID, and get
all members of the group. If a matching member is found for the person that
left the Slack channel, based on email address, that person is removed from the
group using their membership ID.
Improving performance with a data storeWhile looking up group memberships to obtain a membership ID negates the need
to store membership IDs in a local data store (like a database), this code
can be made more efficient by having a data store that saves the Box
membership ID with the user record.By using a local data store, the membership ID can be retrieved from the data
store rather than having to call the Box API repeatedly to search for the
membership ID.
The next Box function we need has two main purposes.
Return the Box group ID of an existing group.
If a group doesn’t exist, create the Box group and return the ID.
The code fetches all the groups in the enterprise, and then tries to match the
Slack channel ID to the group name. If any of the groups matches, the group ID
is returned.If there are no matches, a new Box group is created and the ID of the group is
returned for use. The group will be named after the Slack channel ID since that
is a constant that is returned with both slash commands and user events, making
it easier to lookup without additional functions.
Finally, the main purpose of our whole application is to allow users to share
files and folders from their own Box accounts with everyone else in the group.Building upon all previous functionality, the following function performs that
task.The code starts by capturing the Box group ID for the Slack channel, which
is where content will be shared to.Since we want to share files and folders from the Box account of the person who
sent the slash command, we next capture their Box user profile based on their
email address.Lastly, we make a call to collaborate content with the group via the group ID.
You’ve created Box group user add and remove functions.
You’ve created a function to share content with the group.
Last modified on September 4, 2026
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Box Dev Docs","description":"Box for Developers: guides, API reference, SDKs, and tutorials for building content management, Box AI, and enterprise integrations.","colors":{"primary":"#0061d5","light":"#f6fafd","dark":"#002947"},"logo":{"light":"https://mintcdn.com/box/lJLw9z7FWORNWMcq/logo/boxdev-light.png?fit=max\u0026auto=format\u0026n=lJLw9z7FWORNWMcq\u0026q=85\u0026s=a11710b698ff59d24426f9ecec6c7e9c","dark":"https://mintcdn.com/box/siVVIgx7pBuvW4ua/logo/boxdev-dark.svg?fit=max\u0026auto=format\u0026n=siVVIgx7pBuvW4ua\u0026q=85\u0026s=0e34af393abb1b8c024258d684bb7732"},"favicon":"https://mintcdn.com/box/T2hwpVFBJMA4eeDs/favicon.ico?fit=max\u0026auto=format\u0026n=T2hwpVFBJMA4eeDs\u0026q=85\u0026s=2a2efcc60e46eca7ee3ebbe650c47350","api":{"examples":{"languages":["curl","python","node","swift","java",".Net"],"autogenerate":false}},"seo":{"metatags":{"google-site-verification":"fuelbNhVR1kQluNBJjYt4K1Hj5HvJLhLnIq0o9CAY9E"}},"fonts":{"family":"Inter"},"contextual":{"options":[{"title":"Install Box Agent Skills","description":"Add Box plugins to your AI assistants","icon":"sparkles","href":"/ai/agent-skills"},"cursor","vscode","mcp","chatgpt","claude","perplexity","copy","view"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","banner":{"content":"Join BoxWorks Dev Summit on Nov 5-6, San Francisco and dive into AI agents and unstructured content. [See agenda](https://boxworks.box.com/series/boxworks-2026-dev-summit/landing_page).","dismissible":true},"footer":{"socials":{"x":"https://x.com/box","github":"https://github.com/box-community","linkedin":"https://linkedin.com/company/box","youtube":"https://www.youtube.com/user/box","facebook":"https://www.facebook.com/box"},"links":[{"header":"Resources","items":[{"label":"Newsletter unsubscribe","href":"https://go.box.com/preferences.html"},{"label":"Terms of Use","href":"https://cloud.app.box.com/s/rmwxu64h1ipr41u49w3bbuvbsa29wku9"},{"label":"Privacy Policy","href":"https://www.box.com/en-gb/legal/privacypolicy?url_redirect=direct"},{"label":"Cookie Notification","href":"https://www.box.com/en-gb/legal/cookie-notification?url_redirect=direct"},{"label":"llms.txt","href":"https://developer.box.com/llms.txt"}]}]},"navbar":{"links":[{"href":"https://account.box.com/developers/console","label":"Log in","type":"button"}],"primary":{"type":"button","label":"Get started for free","href":"https://account.box.com/signup/developer"}},"href":""},{"language":"ja","banner":{"content":"Join BoxWorks Dev Summit on Nov 5-6, San Francisco and dive into AI agents and unstructured content. [See agenda](https://boxworks.box.com/series/boxworks-2026-dev-summit/landing_page).","dismissible":true},"footer":{"socials":{"x":"https://x.com/box","github":"https://github.com/box-community","linkedin":"https://linkedin.com/company/box","youtube":"https://www.youtube.com/user/box","facebook":"https://www.facebook.com/box"},"links":[{"header":"リソース","items":[{"label":"ニュースレターの登録解除","href":"https://go.box.com/preferences.html"},{"label":"利用規約","href":"https://cloud.app.box.com/s/rmwxu64h1ipr41u49w3bbuvbsa29wku9"},{"label":"個人情報保護方針","href":"https://www.box.com/en-gb/legal/privacypolicy?url_redirect=direct"},{"label":"Cookieに関する通知","href":"https://www.box.com/en-gb/legal/cookie-notification?url_redirect=direct"},{"label":"llms.txt","href":"https://developer.box.com/llms.txt"}]}]},"navbar":{"links":[{"href":"https://account.box.com/developers/console","label":"ログイン","type":"button"}],"primary":{"type":"button","label":"今すぐ無料で開始","href":"https://account.box.com/signup/developer"}},"href":"ja"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"box","hasAudioNarration":false,"actualSubdomain":"box","customDomains":["developer.box.com"],"gitSource":{"type":"github","owner":"box","repo":"box-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae399959b38aee1e6cb4c05","collectionId":"379c1cab-82c1-4555-bb3f-9f8521fc3dcb","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae399959b38aee1e6cb4c05"},"feedback":{"thumbs":true,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae399959b38aee1e6cb4c05","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"en","tag":"API reference","count":680},{"language":"ja","tag":"APIリファレンス","count":636},{"language":"ja","tag":"ホーム","count":368},{"language":"en","tag":"Home","count":302},{"language":"ja","tag":"AI","count":191},{"language":"en","tag":"AI","count":177},{"language":"ja","tag":"コラボレーション","count":81},{"language":"ja","tag":"ツール","count":77},{"language":"ja","tag":"開発ツール","count":77},{"language":"ja","tag":"メタデータと検索","count":67},{"language":"en","tag":"Tools","count":62},{"language":"en","tag":"Dev tools","count":62},{"language":"ja","tag":"コンテンツ","count":58},{"language":"en","tag":"Metadata \u0026 search","count":56},{"language":"en","tag":"Collaboration","count":50},{"language":"en","tag":"Content","count":49},{"language":"ja","tag":"メタデータ","count":49},{"language":"en","tag":"Supported AI models","count":47},{"language":"en","tag":"v2026.0","count":47},{"language":"ja","tag":"サポートされているAIモデル","count":46}]},"assistantConfig":{"enableAskAiButton":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"a code{border-bottom-color:none!important}.prose :where(a code):not(:where([class~=\"not-prose\"], [class~=\"not-prose\"] *)){color:inherit;font-weight:inherit;text-decoration:none;text-decoration-color:rgb(var(--primary));text-underline-offset:0;text-decoration-thickness:1px}#consent_blackbar{position:relative;z-index:9999999!important}#sidebar,.left-0.right-0.sticky.sm\\:px-4.pb-4.sm\\:pb-6.bottom-0.pt-1.flex.flex-col.items-center.w-full.overflow-hidden.z-20{z-index:1}#footer>div,#sidebar-content{z-index:0}a.nav-anchor img[src$=\"/images/sidebar/box.svg\"]{background-color:transparent!important}#truste-consent-track{z-index:9999999!important;position:fixed!important}.dark #truste-consent-track{background-color:#151f26!important;border-color:#1a1a1a}.dark #truste-show-consent{background-color:#fff;color:#151f26}.dark #truste-consent-text{color:#fff}#truste-consent-content{max-width:1400px}.homepage_container .card img{max-height:200px}.homepage_container h1 span,.homepage_container h2 span{margin:auto}#navbar .max-w-8xl.mx-auto.relative button .ml-4.flex.text-sm.leading-6.whitespace-nowrap.min-w-0.space-x-3.overflow-hidden,header#header .eyebrow{display:none!important}.sidebar-group-header:has(+.sidebar-group>li:is(\n [id=\"/reference\"],\n [id=\"/ja/reference\"],\n [id=\"/ja/reference/v2025.0\"],\n [id=\"/ja/reference/v2026.0\"]\n))>.sidebar-title{display:none}footer div.flex.gap-4.flex-col.md\\:flex-row.md\\:items-center.md\\:gap-8.md\\:justify-center{flex-wrap:wrap}footer div.flex.gap-4.flex-col.md\\:flex-row.md\\:items-center.md\\:gap-8.md\\:justify-center a{white-space:nowrap;text-overflow:clip;overflow:visible;align-self:start;flex-shrink:0;cursor:pointer!important}#google-preferred-source-column{display:flex;flex-direction:column;align-items:flex-end;flex:0 0 auto;width:max-content;max-width:100%}#google-preferred-source{display:flex;justify-content:flex-end;width:auto;margin:0;padding-top:16px}.google-preferred-source-button{appearance:none;margin:0;padding:0;border:0;background:0 0;line-height:0;cursor:pointer}.google-preferred-source-badge{display:block;width:140px;max-width:100%;height:auto}.dark .google-preferred-source-badge--light,.google-preferred-source-badge--dark{display:none}.dark .google-preferred-source-badge--dark{display:block}.nav-logo{min-width:109px}.badge-guide,.badge-quickstart,.badge-tutorial,.dark .badge-guide,.dark .badge-quickstart,.dark .badge-tutorial{background-color:#1f2937;color:#fff}.badge-get{background-color:rgb(74 222 128/.2);color:#15803d}.dark .badge-get{color:#4ade80}.badge-post{background-color:rgb(96 165 250/.2);color:#1d4ed8}.dark .badge-post{color:#60a5fa}.badge-patch,.badge-put{background-color:rgb(250 204 21/.2);color:#a16207}.dark .badge-patch,.dark .badge-put{color:#facc15}.badge-delete{background-color:rgb(248 113 113/.2);color:#b91c1c}.dark .badge-delete{color:#f87171}.badge-api{background-color:#e3f2fd;color:#0d47a1}.dark .badge-api{background-color:#0d47a1;color:#bbdefb}.badge-documentation,.badge-reference,.dark .badge-documentation,.dark .badge-reference{background-color:#000;color:#fff}.badge-default{background-color:#f5f5f5;color:#424242}.badge-group{display:inline-flex;gap:.5rem;flex-wrap:wrap}.dark .badge-default{background-color:#424242;color:#e0e0e0}.update>div:first-child>div:nth-child(3){padding:0;order:4}.update>div:first-child>div:nth-child(3)>span{display:flex;padding:.25rem .75rem;align-items:center;border-radius:9999px;font-size:.875rem;line-height:1.25rem;color:#374151;background-color:#f3f4f6}.dark .update>div:first-child>div:nth-child(3)>span{color:#cecece;background-color:#161616}.update>div:first-child>div:nth-child(4){order:3}div#banner a{text-decoration:none!important;color:#fff;font-weight:600}nav ul #topbar-cta-button a span,nav ul .navbar-link a{border-radius:50px!important}nav ul #topbar-cta-button a span{background-color:#0061d5}#topbar-cta-button a:hover span{opacity:1!important;background-color:#146bd5}.dark #topbar-cta-button a:hover span{opacity:1!important;background-color:#0058c3}.signup-cta-button,.signup-cta-button:active,.signup-cta-button:focus,.signup-cta-button:hover{background-color:#0061d5;border-radius:50px!important;transition:background-color .2s!important;box-shadow:none!important;transform:none!important;border:0!important;border-bottom:none!important;text-decoration:none!important;outline:0!important}.signup-cta-button:hover{background-color:#146bd5!important;opacity:1!important}.dark .signup-cta-button:hover{background-color:#0058c3!important;opacity:1!important}.homepage-secondary-button,.homepage-secondary-button:active,.homepage-secondary-button:focus,.homepage-secondary-button:hover{border-radius:50px!important;border:1px solid #d1d5db!important;background-color:transparent!important;color:#1f2937!important;transition:background-color .2s!important;box-shadow:none!important;transform:none!important;text-decoration:none!important;outline:0!important}.homepage-secondary-button:hover{background-color:#f9fafb!important}.dark .homepage-secondary-button,.dark .homepage-secondary-button:active,.dark .homepage-secondary-button:focus{border-color:#4b5563!important;color:#e5e7eb!important}.dark .homepage-secondary-button:hover{background-color:#1f2937!important}.signup-cta-login,.signup-cta-login:active,.signup-cta-login:focus,.signup-cta-login:hover{text-decoration:none!important;border-bottom:none!important}#content-area h1,#content-area h2,#content-area h3,#content-area h4,#content-area h5,#content-area h6{font-weight:600!important}#content-area h1{font-size:32px!important}.dark img[src*=\"guides-box-ai-ai-models/claude.svg\"],.dark img[src*=\"guides-box-ai-ai-models/gemini.svg\"],.dark img[src*=\"guides-box-ai-ai-models/grok.svg\"],.dark img[src*=\"guides-box-ai-ai-models/meta.svg\"],.dark img[src*=\"guides-box-ai-ai-models/mistral.svg\"],.dark img[src*=\"guides-box-ai-ai-models/openai.svg\"]{filter:invert(1)}.homepage_h2{font-size:28px!important}.chat-assistant-floating-input{z-index:1!important}"}],"page":{"pagePath":"guides/collaborations/connect-slack-to-group-collabs/connect-box-functions","slug":"/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions","pageMetadata":{"title":"Connect Bot to Box","sidebarTitle":"5. Connect Bot to Box","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const{useState:__snippet_useState_117x2gm,useEffect:__snippet_useEffect_117x2gm}=React;const ProgressBar=({pages=[],...props})=>{const _components={a:`a`,..._provideComponents()};const[currentStep,setCurrentStep]=__snippet_useState_117x2gm(0);const[isDarkMode,setIsDarkMode]=__snippet_useState_117x2gm(false);__snippet_useEffect_117x2gm(()=>{const checkDarkMode=()=>{const isDark=document.documentElement.classList.contains(`dark`);console.log(`ProgressBar - isDarkMode:`,isDark);setIsDarkMode(isDark)};checkDarkMode();const observer=new MutationObserver(()=>{checkDarkMode()});observer.observe(document.documentElement,{attributes:true,attributeFilter:[`class`]});return()=>{observer.disconnect()}},[]);__snippet_useEffect_117x2gm(()=>{if(pages.length>0){const currentPath=window.location.pathname;const stepIndex=pages.findIndex(page=>{const pagePath=page.startsWith(`/`)?page:`/${page}`;return currentPath.endsWith(pagePath)||currentPath.includes(pagePath)});if(stepIndex!==-1){setCurrentStep(stepIndex+1)}}},[pages]);if(!pages||pages.length===0){return null}const step=currentStep;const total=pages.length;console.log(`ProgressBar - Rendering with isDarkMode:`,isDarkMode);const progressBarContainerStyle={width:`100%`,marginBottom:`32px`,display:`flex`,alignItems:`center`,gap:`16px`};const stepsContainerStyle={display:`flex`,alignItems:`center`,gap:`8px`,flexShrink:0};const progressBarTrackStyle={flex:1,height:`22px`,backgroundColor:`rgba(169, 210, 244, 0.06)`,border:isDarkMode?`1px solid rgba(230, 241, 247, 0.67)`:`1px solid #e3ecf3`,borderRadius:`4px`,overflow:`hidden`,position:`relative`};const progressBarFillStyle={height:`100%`,backgroundColor:`rgba(113, 192, 248, 0.23)`,width:`${step/total*100}%`,transition:`width 0.3s ease`};const getStepStyle=(stepNumber,isActive)=>{if(isDarkMode){return{width:`22px`,height:`22px`,borderRadius:`4px`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`12px`,fontWeight:`600`,position:`relative`,zIndex:1,transition:`all 0.3s ease`,backgroundColor:isActive?`rgba(113, 192, 248, 0.23)`:`transparent`,color:isActive?`#60a5fa`:`#a0aec0`,border:isActive?`1px solid #e3ecf3`:`1px solid #e0e6eb`,cursor:`pointer`,textDecoration:`none`}}if(isActive){return{width:`22px`,height:`22px`,borderRadius:`4px`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`12px`,fontWeight:`600`,position:`relative`,zIndex:1,transition:`all 0.3s ease`,backgroundColor:`rgba(169, 210, 244, 0.32)`,color:`#374151`,border:`1px solid #e1eef8`,cursor:`pointer`,textDecoration:`none`}}return{width:`22px`,height:`22px`,borderRadius:`4px`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`12px`,fontWeight:`600`,position:`relative`,zIndex:1,transition:`all 0.3s ease`,backgroundColor:`#fbfbfb`,color:`#9ca3af`,border:`1px solid #e3ecf3`,cursor:`pointer`,textDecoration:`none`}};return _jsxs(`div`,{style:progressBarContainerStyle,...props,children:[_jsx(`div`,{style:stepsContainerStyle,children:Array.from({length:total},(_,index)=>{const stepNumber=index+1;const pageIndex=index;const pagePath=pages[pageIndex];const fullPath=pagePath.startsWith(`/`)?pagePath:`/${pagePath}`;const isActive=stepNumber===step;return _jsx(_components.a,{href:fullPath,style:getStepStyle(stepNumber,isActive),children:stepNumber},stepNumber)})}),_jsx(`div`,{style:progressBarTrackStyle,children:_jsx(`div`,{style:progressBarFillStyle})})]})};const ChoiceDebug=({option})=>{const[currentValue,setCurrentValue]=__snippet_useState_19bsbuo(null);const[allState,setAllState]=__snippet_useState_19bsbuo({});const[isDarkMode,setIsDarkMode]=__snippet_useState_19bsbuo(false);__snippet_useEffect_19bsbuo(()=>{const updateState=()=>{if(window.choiceStateManager){setCurrentValue(window.choiceStateManager.getValue(option));setAllState(window.choiceStateManager.getState())}};updateState();const unsubscribe=window.listenToChoice?.(option,updateState)||(()=>{});const handleGlobalUpdate=()=>updateState();window.addEventListener(`choiceStateUpdate`,handleGlobalUpdate);return()=>{unsubscribe();window.removeEventListener(`choiceStateUpdate`,handleGlobalUpdate)}},[option]);__snippet_useEffect_19bsbuo(()=>{const checkDarkMode=()=>{if(document.documentElement.classList.contains(`dark`)){setIsDarkMode(true)}else if(document.documentElement.classList.contains(`light`)){setIsDarkMode(false)}else{setIsDarkMode(window.matchMedia(`(prefers-color-scheme: dark)`).matches)}};checkDarkMode();const mediaQuery=window.matchMedia(`(prefers-color-scheme: dark)`);const handleMediaChange=e=>{if(!document.documentElement.classList.contains(`dark`)\u0026\u0026!document.documentElement.classList.contains(`light`)){setIsDarkMode(e.matches)}};mediaQuery.addEventListener(`change`,handleMediaChange);const observer=new MutationObserver(()=>{checkDarkMode()});observer.observe(document.documentElement,{attributes:true,attributeFilter:[`class`]});return()=>{mediaQuery.removeEventListener(`change`,handleMediaChange);observer.disconnect()}},[]);return _jsxs(`div`,{style:{padding:`10px`,backgroundColor:isDarkMode?`#2d3748`:`#f5f5f5`,border:isDarkMode?`1px solid #4a5568`:`1px solid #ddd`,borderRadius:`4px`,fontSize:`12px`,fontFamily:`monospace`,marginTop:`20px`,color:isDarkMode?`#e2e8f0`:`inherit`},children:[_jsx(`strong`,{children:translate(`Choice Debug:`)}),_jsx(`br`,{}),translate(`Option:`),` `,option,_jsx(`br`,{}),translate(`Current Value:`),` `,currentValue||`undefined`,_jsx(`br`,{}),translate(`All State:`),` `,JSON.stringify(allState,null,2)]})};const Observe=({option,value,children,...props})=>{const[shouldShow,setShouldShow]=__snippet_useState_19bsbuo(false);__snippet_useEffect_19bsbuo(()=>{const updateVisibility=()=>{const matches=window.matchesChoiceValues?.(option,value)||false;setShouldShow(matches)};updateVisibility();const unsubscribe=window.listenToChoice?.(option,updateVisibility)||(()=>{});return unsubscribe},[option,value]);if(!shouldShow){return null}return _jsx(`div`,{...props,children})};const Trigger=({option,value,children,...props})=>{const handleClick=()=>{window.triggerChoice?.(option,value)};return _jsx(`div`,{onClick:handleClick,style:{cursor:`pointer`},...props,children})};const Grid=({columns=2,compact=false,children,...props})=>{const gridStyles={display:`grid`,gridTemplateColumns:`repeat(${columns}, 1fr)`,gap:compact?`8px`:`16px`,marginBottom:compact?`10px`:`20px`};return _jsx(`div`,{style:gridStyles,...props,children})};const Choice=({option,value,color=``,unset=false,lazy=false,children,...props})=>{const[shouldShow,setShouldShow]=__snippet_useState_19bsbuo(false);const[hasEverShown,setHasEverShown]=__snippet_useState_19bsbuo(false);const[isDarkMode,setIsDarkMode]=__snippet_useState_19bsbuo(false);__snippet_useEffect_19bsbuo(()=>{const updateVisibility=()=>{const hasOptionValue=window.hasChoiceValue?.(option)||false;const matchesValue=window.matchesChoiceValues?.(option,value)||false;let show=false;if(unset\u0026\u0026!hasOptionValue){show=true}else if(!unset\u0026\u0026matchesValue){show=true}setShouldShow(show);if(show\u0026\u0026!hasEverShown){setHasEverShown(true)}};updateVisibility();const unsubscribe=window.listenToChoice?.(option,updateVisibility)||(()=>{});return unsubscribe},[option,value,unset,hasEverShown]);__snippet_useEffect_19bsbuo(()=>{const checkDarkMode=()=>{if(document.documentElement.classList.contains(`dark`)){setIsDarkMode(true)}else if(document.documentElement.classList.contains(`light`)){setIsDarkMode(false)}else{setIsDarkMode(window.matchMedia(`(prefers-color-scheme: dark)`).matches)}};checkDarkMode();const mediaQuery=window.matchMedia(`(prefers-color-scheme: dark)`);const handleMediaChange=e=>{if(!document.documentElement.classList.contains(`dark`)\u0026\u0026!document.documentElement.classList.contains(`light`)){setIsDarkMode(e.matches)}};mediaQuery.addEventListener(`change`,handleMediaChange);const observer=new MutationObserver(()=>{checkDarkMode()});observer.observe(document.documentElement,{attributes:true,attributeFilter:[`class`]});return()=>{mediaQuery.removeEventListener(`change`,handleMediaChange);observer.disconnect()}},[]);const getColorStyles=()=>{const baseStyles={border:isDarkMode?`1px dashed #4a5568`:`1px dashed #e1e5e9`,padding:`20px`,marginBottom:`20px`,borderRadius:`8px`,backgroundColor:isDarkMode?`#1a202c`:`#ffffff`};const colorMap={green:{light:{backgroundColor:`#d4edda`,borderColor:`#28a745`},dark:{backgroundColor:`#1a3a2a`,borderColor:`#66bb6a`}},red:{light:{backgroundColor:`#f8d7da`,borderColor:`#dc3545`},dark:{backgroundColor:`#3a1a1a`,borderColor:`#ef5350`}},blue:{light:{backgroundColor:`#d1ecf1`,borderColor:`#0c5460`},dark:{backgroundColor:`#1a2a3a`,borderColor:`#42a5f5`}},none:{backgroundColor:`transparent`,padding:`0`,margin:`0`,border:`none`}};const colorStyles=color!==`none`?colorMap[color]?.[isDarkMode?`dark`:`light`]||{}:colorMap.none;return{...baseStyles,...colorStyles}};if(lazy\u0026\u0026!hasEverShown\u0026\u0026!shouldShow){return null}return _jsx(`div`,{style:{...getColorStyles(),display:shouldShow?`block`:`none`},className:`choice-content`,...props,children})};const{useState:__snippet_useState_19bsbuo,useEffect:__snippet_useEffect_19bsbuo}=React;const Choose=({option,value,color=``,children,...props})=>{const[isSelected,setIsSelected]=__snippet_useState_19bsbuo(false);const[hasOptionTriggered,setHasOptionTriggered]=__snippet_useState_19bsbuo(false);const[isDarkMode,setIsDarkMode]=__snippet_useState_19bsbuo(false);__snippet_useEffect_19bsbuo(()=>{const currentValue=window.getChoiceValue?.(option);const optionTriggered=window.hasChoiceValue?.(option)||false;setIsSelected(currentValue===value);setHasOptionTriggered(optionTriggered);const unsubscribe=window.listenToChoice?.(option,newValue=>{setIsSelected(newValue===value);setHasOptionTriggered(true)})||(()=>{});return unsubscribe},[option,value]);__snippet_useEffect_19bsbuo(()=>{const checkDarkMode=()=>{if(document.documentElement.classList.contains(`dark`)){setIsDarkMode(true)}else if(document.documentElement.classList.contains(`light`)){setIsDarkMode(false)}else{setIsDarkMode(window.matchMedia(`(prefers-color-scheme: dark)`).matches)}};checkDarkMode();const mediaQuery=window.matchMedia(`(prefers-color-scheme: dark)`);const handleMediaChange=e=>{if(!document.documentElement.classList.contains(`dark`)\u0026\u0026!document.documentElement.classList.contains(`light`)){setIsDarkMode(e.matches)}};mediaQuery.addEventListener(`change`,handleMediaChange);const observer=new MutationObserver(()=>{checkDarkMode()});observer.observe(document.documentElement,{attributes:true,attributeFilter:[`class`]});return()=>{mediaQuery.removeEventListener(`change`,handleMediaChange);observer.disconnect()}},[]);const handleClick=()=>{window.triggerChoice?.(option,value)};const handleKeyDown=e=>{if(e.key===`Enter`||e.key===` `){e.preventDefault();handleClick()}};const getColorStyles=()=>{const baseStyles={border:isDarkMode?`1px dashed #4a5568`:`1px dashed #e1e5e9`,cursor:`pointer`,padding:`20px`,position:`relative`,backgroundColor:isDarkMode?`#2d3748`:`#f8f9fa`,outline:`none`,height:`100%`,borderRadius:`8px`,transition:`all 0.2s ease`,display:`flex`,flexDirection:`column`};const colorMap={green:{light:{backgroundColor:`#d4edda`,borderColor:`#28a745`},dark:{backgroundColor:`#1a3a2a`,borderColor:`#66bb6a`}},red:{light:{backgroundColor:`#f8d7da`,borderColor:`#dc3545`},dark:{backgroundColor:`#3a1a1a`,borderColor:`#ef5350`}},blue:{light:{backgroundColor:`#d1ecf1`,borderColor:`#0c5460`},dark:{backgroundColor:`#1a2a3a`,borderColor:`#42a5f5`}}};const colorStyles=colorMap[color]?.[isDarkMode?`dark`:`light`]||{};if(isSelected){return{...baseStyles,...colorStyles,borderStyle:`solid`,borderWidth:`3px`,borderColor:colorStyles.borderColor||(isDarkMode?`#42a5f5`:`#0061d5`),backgroundColor:colorStyles.backgroundColor||(isDarkMode?`#1a2a3a`:`#e3f2fd`),boxShadow:isDarkMode?`0 2px 8px rgba(66, 165, 245, 0.3)`:`0 2px 8px rgba(0, 97, 213, 0.3)`,transform:`scale(1.02)`}}if(hasOptionTriggered\u0026\u0026!isSelected){return{...baseStyles,...colorStyles,opacity:.5}}return{...baseStyles,...colorStyles}};const iconStyles={float:`left`,position:`relative`,top:`2px`,marginRight:`12px`,width:`20px`,height:`20px`,color:isSelected?isDarkMode?`#42a5f5`:`#0061d5`:isDarkMode?`#a0aec0`:`#666`};return _jsxs(`div`,{onClick:handleClick,style:getColorStyles(),tabIndex:0,onKeyDown:handleKeyDown,...props,children:[_jsx(`div`,{style:iconStyles,children:isSelected?_jsx(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,style:{width:`100%`,height:`100%`},children:_jsx(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z`})}):_jsx(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,style:{width:`100%`,height:`100%`},children:_jsx(`circle`,{cx:`12`,cy:`12`,r:`10`})})}),_jsx(`div`,{style:{flex:1},className:`choose-content`,children})]})};const Link=({href,children,className,...props})=>{const _components={a:`a`,..._provideComponents()};const localizedHref=localizeLink(href);return _jsx(_components.a,{href:localizedHref,className,...props,children})};function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Danger,Heading,Tip,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Danger)_missingMdxReference(`Danger`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`ProgressBar`,children:_jsx(ProgressBar,{pages:[`guides/collaborations/connect-slack-to-group-collabs/configure-slack`,`guides/collaborations/connect-slack-to-group-collabs/configure-box`,`guides/collaborations/connect-slack-to-group-collabs/scaffold-application-code`,`guides/collaborations/connect-slack-to-group-collabs/handle-slack-events`,`guides/collaborations/connect-slack-to-group-collabs/connect-box-functions`,`guides/collaborations/connect-slack-to-group-collabs/test-bot`]})}),`\n`,_jsx(_components.p,{children:`We’re now handling and processing events coming from Slack, then obtaining all\ninformation needed to connect with Box users and groups. We now need to\nconnect that functionality to Box functions.`}),`\n`,_jsx(_components.p,{children:`In this step we’ll expand several functions from the last step to incorporate\nnew Box features.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Instantiate a Box client.`}),`\n`,_jsx(_components.li,{children:`Add a Box user to a Box group.`}),`\n`,_jsx(_components.li,{children:`Remove a Box user from a Box group.`}),`\n`,_jsx(_components.li,{children:`Fetch a Box group ID from a group name.`}),`\n`,_jsx(_components.li,{children:`Add content that is shared to a group.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`instantiate-a-box-client`,children:`Instantiate a Box Client`}),`\n`,_jsx(_components.p,{children:`To make calls to the Box APIs, you’ll first need to set up a Box client.`}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsxs(Choice,{option:`programming.platform`,value:`node`,color:`none`,children:[_jsxs(_components.p,{children:[`Within `,_jsx(_components.code,{children:`process.js`}),`, replace the `,_jsx(_components.code,{children:`// INSTANTIATE BOX CLIENT`}),` comment at the top\nwith the following.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` boxConfig`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"./boxConfig.json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` box`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getPreconfiguredInstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boxConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getAppAuthClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"enterprise\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`boxConfig`}),` assignment line will use the `,_jsx(_components.code,{children:`boxConfig.json`}),` file you\ndownloaded from your Box app at the end of `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/guides/collaborations/connect-slack-to-group-collabs/configure-box`,children:`step 2`})}),`. The sample above is\nassuming that you have it stored in the same folder as `,_jsx(_components.code,{children:`process.js`}),`. If that’s\nnot the case, change the path to point to where your `,_jsx(_components.code,{children:`boxConfig.json`}),` file is,\nand what it may be named.`]}),_jsxs(_components.p,{children:[`The last `,_jsx(_components.code,{children:`client`}),` assignment line is creating a Box client object which may be\nused to make API calls. At this point it is scoped to the\n`,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/guides/getting-started/users#service-account/`,children:`service account`})}),` of the application, and not a specific user.`]})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsxs(Choice,{option:`programming.platform`,value:`java`,color:`none`,children:[_jsxs(_components.p,{children:[`Within `,_jsx(_components.code,{children:`Application.java`}),`, replace the `,_jsx(_components.code,{children:`// INSTANTIATE BOX CLIENT`}),` comment\nwithin the `,_jsx(_components.code,{children:`processEvent`}),` method with the following.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fileReader`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FileReader`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"boxConfig.json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boxConfig`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BoxConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`readFrom`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(fileReader);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boxAPI`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BoxDeveloperEditionAPIConnection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getAppEnterpriseConnection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(boxConfig);`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`boxConfig`}),` assignment line will use the `,_jsx(_components.code,{children:`boxConfig.json`}),` file you\ndownloaded from your Box app at the end of `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/guides/collaborations/connect-slack-to-group-collabs/configure-box`,children:`step 2`})}),`. The sample above is\nassuming that you have it stored at the root of the Java project. If that’s\nnot the case, change the path in the `,_jsx(_components.code,{children:`fileReader`}),` assignment to point to where\nyour `,_jsx(_components.code,{children:`boxConfig.json`}),` file is, and what it may be named.`]}),_jsxs(_components.p,{children:[`The last `,_jsx(_components.code,{children:`boxAPI`}),` assignment line is creating a Box client object which may be\nused to make API calls. At this point it is scoped to the\n`,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/guides/getting-started/users#service-account/`,children:`service account`})}),` of the application, and not a specific user.`]})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsx(Choice,{option:`programming.platform`,unset:true,color:`none`,children:_jsx(Danger,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Incomplete previous step`}),`\nPlease select a preferred language / framework in step 1 to get started.`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`add-a-box-user-to-a-group`,children:`Add a Box user to a group`}),`\n`,_jsx(_components.p,{children:`Let’s add a function that adds a Box user to a group. When a bot is added to a\nchannel and needs to create a Box group with all users of the channel, or when\na single user joins the channel after that action, this function will perform\nthat task.`}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsxs(Choice,{option:`programming.platform`,value:`node`,color:`none`,children:[_jsxs(_components.p,{children:[`Replace the `,_jsx(_components.code,{children:`addGroupUser`}),` function with the following.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` addGroupUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`email`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enterprise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`filter_term:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` email`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`users`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`users`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` userId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` users`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` groupRole`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groups`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userRoles`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MEMBER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groups`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`role:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` groupRole`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`membership`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`membership`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Member added with membership ID: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`membership`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Member not added`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No Box user found to add to group\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsxs(Choice,{option:`programming.platform`,value:`java`,color:`none`,children:[_jsxs(_components.p,{children:[`Replace the `,_jsx(_components.code,{children:`addGroupUser`}),` method with the following.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` addGroupUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` groupId, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` userEmail) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` Iterable`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`BoxUser`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Info`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`users`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BoxUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getAllEnterpriseUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boxAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, userEmail);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`BoxUser`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` :`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` users) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getLogin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toUpperCase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`equals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toUpperCase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` BoxGroup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` group`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxGroup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(boxAPI, groupId);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` BoxUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` boxUser`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boxAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` BoxGroupMembership`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` groupMembershipInfo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` group`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addMembership`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(boxUser);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Exception`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` ex`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`println`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"User already present\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsx(Choice,{option:`programming.platform`,unset:true,color:`none`,children:_jsx(Danger,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Incomplete previous step`}),`\nPlease select a preferred language / framework in step 1 to get started.`]})})})}),`\n`,_jsx(_components.p,{children:`Since we’re matching a Slack user to a Box user via their email address, we\nfirst find a matching Box user using the Slack profile email. If found, a call\nis made to add that user to the channel group. The group was created when the\nbot was first added.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`The Box `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/reference/get-users-id`,children:`Get User`})}),` endpoint only permits user lookup\nby user ID. To lookup a user by email address, use the\n`,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/reference/get-users`,children:`List Enterprise Users`})}),` endpoint and set the\n`,_jsx(_components.code,{children:`filter_term`}),` option to the email address you’re searching for.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`remove-a-box-user-from-a-group`,children:`Remove a Box user from a group`}),`\n`,_jsx(_components.p,{children:`When a user leaves or is removed from a Slack channel, we also want to remove\nthem from the Box group so that they can no longer access the shared group\ncontent.`}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsxs(Choice,{option:`programming.platform`,value:`node`,color:`none`,children:[_jsxs(_components.p,{children:[`Replace the `,_jsx(_components.code,{children:`removeGroupUser`}),` function with the following.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` removeGroupUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`email`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groups`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getMemberships`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`memberships`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` memberships`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`memberships`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`login`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` email`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groups`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`removeMembership`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`memberships`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Group user removed'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` break`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsxs(Choice,{option:`programming.platform`,value:`java`,color:`none`,children:[_jsxs(_components.p,{children:[`Replace the `,_jsx(_components.code,{children:`removeGroupUser`}),` method with the following.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` removeGroupUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` groupId, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` userEmail) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` BoxGroup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` boxGroup`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxGroup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boxAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, groupId);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` Iterable`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`BoxGroupMembership`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Info`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`memberships`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` boxGroup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getAllMemberships`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`BoxGroupMembership`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` membershipInfo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` :`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` memberships) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`membershipInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getLogin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toUpperCase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`equals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toUpperCase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` BoxGroupMembership`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` membership`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxGroupMembership`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boxAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`membershipInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` membership`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`delete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsx(Choice,{option:`programming.platform`,unset:true,color:`none`,children:_jsx(Danger,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Incomplete previous step`}),`\nPlease select a preferred language / framework in step 1 to get started.`]})})})}),`\n`,_jsx(_components.p,{children:`This code will take the group ID, which will be the Slack channel ID, and get\nall members of the group. If a matching member is found for the person that\nleft the Slack channel, based on email address, that person is removed from the\ngroup using their membership ID.`}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Improving performance with a data store`})}),_jsx(_components.p,{children:`While looking up group memberships to obtain a membership ID negates the need\nto store membership IDs in a local data store (like a database), this code\ncan be made more efficient by having a data store that saves the Box\nmembership ID with the user record.`}),_jsx(_components.p,{children:`By using a local data store, the membership ID can be retrieved from the data\nstore rather than having to call the Box API repeatedly to search for the\nmembership ID.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`fetch-a-box-group-id-for-a-group-name`,children:`Fetch a Box group ID for a group name`}),`\n`,_jsx(_components.p,{children:`The next Box function we need has two main purposes.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Return the Box group ID of an existing group.`}),`\n`,_jsx(_components.li,{children:`If a group doesn’t exist, create the Box group and return the ID.`}),`\n`]}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsxs(Choice,{option:`programming.platform`,value:`node`,color:`none`,children:[_jsxs(_components.p,{children:[`Replace the `,_jsx(_components.code,{children:`getGroupId`}),` function with the following.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getGroupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`groupName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`callback`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groups`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getAll`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`groups`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` group`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` groups`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`filter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`g`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` g`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` groupName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`group`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groups`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groupName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` description:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Slack channel collaboration group\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` invitability_level:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"all_managed_users\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`group`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` callback`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`group`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` callback`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`group`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsxs(Choice,{option:`programming.platform`,value:`java`,color:`none`,children:[_jsxs(_components.p,{children:[`Replace the `,_jsx(_components.code,{children:`getGroupId`}),` method with the following.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` String`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getGroupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` groupName) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` groupId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` Iterable`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`BoxGroup`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Info`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groups`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BoxGroup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getAllGroups`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boxAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`BoxGroup`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` groupInfo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` :`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` groups) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groupInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toUpperCase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`equals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(groupName)) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` groupId `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` groupInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isEmpty`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` BoxGroup`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` groupInfo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BoxGroup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createGroup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(boxAPI, groupName);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` groupId `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` groupInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` groupId;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsx(Choice,{option:`programming.platform`,unset:true,color:`none`,children:_jsx(Danger,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Incomplete previous step`}),`\nPlease select a preferred language / framework in step 1 to get started.`]})})})}),`\n`,_jsx(_components.p,{children:`The code fetches all the groups in the enterprise, and then tries to match the\nSlack channel ID to the group name. If any of the groups matches, the group ID\nis returned.`}),`\n`,_jsx(_components.p,{children:`If there are no matches, a new Box group is created and the ID of the group is\nreturned for use. The group will be named after the Slack channel ID since that\nis a constant that is returned with both slash commands and user events, making\nit easier to lookup without additional functions.`}),`\n`,_jsx(Heading,{level:`2`,id:`add-shared-content-to-a-group`,children:`Add shared content to a group`}),`\n`,_jsx(_components.p,{children:`Finally, the main purpose of our whole application is to allow users to share\nfiles and folders from their own Box accounts with everyone else in the group.`}),`\n`,_jsx(_components.p,{children:`Building upon all previous functionality, the following function performs that\ntask.`}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsxs(Choice,{option:`programming.platform`,value:`node`,color:`none`,children:[_jsxs(_components.p,{children:[`Replace the `,_jsx(_components.code,{children:`processContent`}),` function with the following.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`29`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` processContent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`channel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`itemType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`itemId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getGroupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`channel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` email`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`profile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`email`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enterprise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`filter_term:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` email`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`users`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`users`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`asUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`users`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` collabRole`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`collaborationRoles`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`VIEWER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` collabOptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` itemType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`collaborations`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createWithGroupID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`itemId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`collabRole`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`collabOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`collaboration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Content added with collaboration ID \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`collaboration`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` util`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`inspect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` showHidden:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` depth:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsxs(Choice,{option:`programming.platform`,value:`java`,color:`none`,children:[_jsxs(_components.p,{children:[`Replace the `,_jsx(_components.code,{children:`processContent`}),` method with the following.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`32`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`32`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` processContent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`JSONObject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` userResponse, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` channel, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fType, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fId) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` groupId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getGroupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(channel);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` JSONObject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userObj`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (JSONObject) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` JSONObject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userProfile`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (JSONObject) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userObj`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"profile\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userEmail`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (String) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userProfile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` Iterable`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`BoxUser`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Info`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`users`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BoxUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getAllEnterpriseUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boxAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, userEmail);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`BoxUser`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` :`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` users) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getLogin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toUpperCase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`equals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toUpperCase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` uid`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` boxAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`asUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(uid);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` BoxCollaborator`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` collabGroup`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxGroup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(boxAPI, groupId);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`equals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` BoxFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(boxAPI, fId);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`collaborate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(collabGroup, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`BoxCollaboration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Role`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`VIEWER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`equals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"folder\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` BoxFolder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` folder`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxFolder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(boxAPI, fId);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` folder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`collaborate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(collabGroup, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`BoxCollaboration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Role`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`VIEWER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Exception`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` ex`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`println`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Collaboration failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` boxAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`asSelf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`Choice`,children:_jsx(Choice,{option:`programming.platform`,unset:true,color:`none`,children:_jsx(Danger,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Incomplete previous step`}),`\nPlease select a preferred language / framework in step 1 to get started.`]})})})}),`\n`,_jsx(_components.p,{children:`The code starts by capturing the Box group ID for the Slack channel, which\nis where content will be shared to.`}),`\n`,_jsx(_components.p,{children:`Since we want to share files and folders from the Box account of the person who\nsent the slash command, we next capture their Box user profile based on their\nemail address.`}),`\n`,_jsx(_components.p,{children:`Lastly, we make a call to collaborate content with the group via the group ID.`}),`\n`,_jsx(Heading,{level:`2`,id:`summary`,children:`Summary`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`You’ve instantiated a Box client.`}),`\n`,_jsx(_components.li,{children:`You’ve created Box group user add and remove functions.`}),`\n`,_jsx(_components.li,{children:`You’ve created a function to share content with the group.`}),`\n`]}),`\n`,_jsx(_MdxComponentBoundary,{name:`Observe`,children:_jsx(Observe,{option:`programming.platform`,value:`node,java`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{__snippet_useState_117x2gm,__snippet_useEffect_117x2gm,ProgressBar,ChoiceDebug,Observe,Trigger,Grid,Choice,__snippet_useState_19bsbuo,__snippet_useEffect_19bsbuo,Choose,Link,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Connect Bot to Box","sidebarTitle":"5. Connect Bot to Box","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[133,13152," __snippet_useState_117x2gm=undefined;const __snippet_useEffect_117x2gm=undefined;const ProgressBar=()=>null;const ChoiceDebug=()=>null;const Observe=()=>null;const Trigger=()=>null;const Grid=()=>null;const Choice=()=>null;const __snippet_useState_19bsbuo=undefined;const __snippet_useEffect_19bsbuo=undefined;const Choose=()=>null;const Link=()=>null;functio"]]},"mdxExtracts":{"tableOfContents":[{"title":"Instantiate a Box Client","slug":"instantiate-a-box-client","depth":2,"children":[]},{"title":"Add a Box user to a group","slug":"add-a-box-user-to-a-group","depth":2,"children":[]},{"title":"Remove a Box user from a group","slug":"remove-a-box-user-from-a-group","depth":2,"children":[]},{"title":"Fetch a Box group ID for a group name","slug":"fetch-a-box-group-id-for-a-group-name","depth":2,"children":[]},{"title":"Add shared content to a group","slug":"add-shared-content-to-a-group","depth":2,"children":[]},{"title":"Summary","slug":"summary","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/box/523776d2eff70e58/scripts/cookie-banner.js","/_mintlify/custom/box/e597cec886c1778e/scripts/locale-links.js","/_mintlify/custom/box/37b2f846ed414abc/snippets/choose-choice-simple.js","/_mintlify/custom/box/78fc14bb599966cb/scripts/locale-footer-combined.js","/_mintlify/custom/box/9a429216167d598a/scripts/analitics.js","/_mintlify/custom/box/2f463a090bfcd0e8/snippets/boxIntl.js","/_mintlify/custom/box/d88c3906cf95ec86/snippets/translations.js","/_mintlify/custom/box/d67e74fc334b686a/scripts/preferred-source.js"],"subdomain":"box","siteName":"Box Dev Docs","title":"Connect Bot to Box - Box Dev Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions","matchLevel":0},"ja":{"href":"/ja/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions","matchLevel":1}}},"lastModified":"2026-10-29T19:09:37.729Z","gitLastModified":"2026-09-04T16:50:59.000Z","originalFileLocation":"guides/collaborations/connect-slack-to-group-collabs/connect-box-functions.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Box Dev Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connect Bot to Box - Box Dev Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Box Dev Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://box.mintlify.app/_mintlify/api/og/v2?division=Connect+Slack+to+Group+Collaborations\u0026amp;title=Connect+Bot+to+Box\u0026amp;theme=7c006b8b877970d319badcf9\u0026amp;signature=b105bb45bc45cbda539292338fd9ea077cd4d0a6ec30e91b894b42ebef1efe4f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Connect Bot to Box - Box Dev Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://box.mintlify.app/_mintlify/api/og/v2?division=Connect+Slack+to+Group+Collaborations\u0026amp;title=Connect+Bot+to+Box\u0026amp;theme=7c006b8b877970d319badcf9\u0026amp;signature=b105bb45bc45cbda539292338fd9ea077cd4d0a6ec30e91b894b42ebef1efe4f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Box Dev Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0061d5\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"fuelbNhVR1kQluNBJjYt4K1Hj5HvJLhLnIq0o9CAY9E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://developer.box.com/ja/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.box.com/#organization\",\"name\":\"Box Dev Docs\",\"url\":\"https://developer.box.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/box/lJLw9z7FWORNWMcq/logo/boxdev-light.png?fit=max\u0026auto=format\u0026n=lJLw9z7FWORNWMcq\u0026q=85\u0026s=a11710b698ff59d24426f9ecec6c7e9c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.box.com#website\",\"name\":\"Box Dev Docs\",\"url\":\"https://developer.box.com\",\"publisher\":{\"@id\":\"https://developer.box.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions#webpage\",\"url\":\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions\",\"name\":\"Connect Bot to Box\",\"dateModified\":\"2026-09-04T16:50:59.000Z\",\"isPartOf\":{\"@id\":\"https://developer.box.com#website\"},\"breadcrumb\":{\"@id\":\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Collaboration\",\"item\":\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/configure-slack\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Collaborations\",\"item\":\"https://developer.box.com/guides/collaborations/index\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Connect Slack to Group Collaborations\",\"item\":\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/index\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Connect Bot to Box\",\"item\":\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions#article\",\"headline\":\"Connect Bot to Box\",\"name\":\"Connect Bot to Box\",\"url\":\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions\",\"mainEntityOfPage\":{\"@id\":\"https://developer.box.com/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions#webpage\"},\"dateModified\":\"2026-09-04T16:50:59.000Z\",\"publisher\":{\"@id\":\"https://developer.box.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.box.com#website\"}}]}\u003c/script>","siteName":"Box Dev Docs","nav":{"global":null,"languages":[{"language":"en","banner":{"content":"Join BoxWorks Dev Summit on Nov 5-6, San Francisco and dive into AI agents and unstructured content. [See agenda](https://boxworks.box.com/series/boxworks-2026-dev-summit/landing_page).","dismissible":true},"footer":{"socials":{"x":"https://x.com/box","github":"https://github.com/box-community","linkedin":"https://linkedin.com/company/box","youtube":"https://www.youtube.com/user/box","facebook":"https://www.facebook.com/box"},"links":[{"header":"Resources","items":[{"label":"Newsletter unsubscribe","href":"https://go.box.com/preferences.html"},{"label":"Terms of Use","href":"https://cloud.app.box.com/s/rmwxu64h1ipr41u49w3bbuvbsa29wku9"},{"label":"Privacy Policy","href":"https://www.box.com/en-gb/legal/privacypolicy?url_redirect=direct"},{"label":"Cookie Notification","href":"https://www.box.com/en-gb/legal/cookie-notification?url_redirect=direct"},{"label":"llms.txt","href":"https://developer.box.com/llms.txt"}]}]},"navbar":{"links":[{"href":"https://account.box.com/developers/console","label":"Log in","type":"button"}],"primary":{"type":"button","label":"Get started for free","href":"https://account.box.com/signup/developer"}},"tabs":[{"tab":"Home","pages":[{"title":"Home","sidebarTitle":"Box Dev Docs","mode":"frame","href":""},{"title":"Sample Code Catalog","mode":"wide","href":"/sample-code"},{"group":"Getting started","pages":[{"title":"Box for Developers quick start","sidebarTitle":"Quick Start","href":"/guides/getting-started/index"},{"sidebarTitle":"Free developer plan","title":"Free developer plan","href":"/guides/getting-started/free-developer-plan"},{"title":"Why Box for developers","sidebarTitle":"Why Box","href":"/guides/getting-started/why-box"},{"title":"Plan your integration","sidebarTitle":"Plan your integration","href":"/guides/getting-started/plan-your-integration"},{"title":"User types","sidebarTitle":"User types","href":"/guides/getting-started/users"},{"title":"Create your first application","sidebarTitle":"Create your first application","href":"/guides/getting-started/first-application"},{"title":"Locating IDs","sidebarTitle":"Locating IDs","href":"/guides/getting-started/locating-values"},{"title":"Box developer sandboxes","sidebarTitle":"Sandboxes","href":"/guides/getting-started/sandbox"},{"title":"Box for Developers glossary","href":"/guides/getting-started/box-glossary"},{"title":"Box Platform API agent playbook","href":"/guides/getting-started/agent-playbook"}]},{"group":"Applications \u0026 integrations","pages":[{"title":"Applications","href":"/guides/applications/index"},{"title":"Integrations","href":"/guides/applications/integrations/index"},{"group":"Platform Apps","root":{"title":"Platform Apps","href":"/guides/applications/platform-apps/index"},"pages":[{"title":"Create a Platform App","href":"/guides/applications/platform-apps/create"}]},{"group":"Web App Integrations","root":{"title":"Web App Integrations","href":"/guides/applications/web-app-integrations/index"},"pages":[{"title":"Integrations Types","href":"/guides/applications/web-app-integrations/types"},{"title":"User Experience","href":"/guides/applications/web-app-integrations/user-experience"},{"title":"Create Web App Integration","href":"/guides/applications/web-app-integrations/configure"}]},{"group":"Slack integration mappings","root":{"title":"Slack Integration Mappings","sidebarTitle":"Overview","href":"/guides/integration-mappings/slack-mappings/index"},"pages":[{"title":"Slack Integration Mappings Setup","href":"/guides/integration-mappings/slack-mappings/setup"},{"title":"List Slack Integration Mappings","href":"/guides/integration-mappings/slack-mappings/list-mappings"},{"title":"Create Slack Integration Mapping","href":"/guides/integration-mappings/slack-mappings/create-mapping"},{"title":"Update Slack Integration Mapping","href":"/guides/integration-mappings/slack-mappings/update-mapping"},{"title":"Delete Slack Integration Mapping","href":"/guides/integration-mappings/slack-mappings/delete-mapping"},{"title":"Slack Integration Mappings Troubleshooting","href":"/guides/integration-mappings/slack-mappings/troubleshooting"}]},{"group":"Teams integration mappings","root":{"title":"Teams integration mappings","sidebarTitle":"Overview","href":"/guides/integration-mappings/teams-mappings/index"},"pages":[{"title":"List Teams integration mappings","href":"/guides/integration-mappings/teams-mappings/list-mappings"},{"title":"Create Teams integration mappings","href":"/guides/integration-mappings/teams-mappings/create-mappings"},{"title":"Update Teams integration mappings","href":"/guides/integration-mappings/teams-mappings/update-mappings"},{"title":"Delete Teams integration mappings","href":"/guides/integration-mappings/teams-mappings/delete-mappings"}]}]},{"group":"Identity \u0026 access","pages":[{"group":"Authentication","root":{"title":"Authentication","sidebarTitle":"Overview","href":"/guides/authentication/index"},"pages":[{"group":"OAuth 2.0","root":{"title":"OAuth 2.0 authentication","sidebarTitle":"Overview","href":"/guides/authentication/oauth2/index"},"pages":[{"title":"Setup with OAuth 2.0","href":"/guides/authentication/oauth2/oauth2-setup"},{"title":"OAuth 2.0 with SDKs","href":"/guides/authentication/oauth2/with-sdk"},{"title":"OAuth 2.0 without SDKs","href":"/guides/authentication/oauth2/without-sdk"},{"title":"as-user header","href":"/guides/authentication/oauth2/as-user"}]},{"group":"Client Credentials Grant","root":{"title":"Client Credentials Grant","sidebarTitle":"Overview","href":"/guides/authentication/client-credentials/index"},"pages":[{"title":"Setup with Client Credentials Grant","href":"/guides/authentication/client-credentials/client-credentials-setup"}]},{"group":"JWT","root":{"title":"JWT authentication","sidebarTitle":"Overview","href":"/guides/authentication/jwt/index"},"pages":[{"title":"Setup with JWT","href":"/guides/authentication/jwt/jwt-setup"},{"title":"JWT with SDKs","href":"/guides/authentication/jwt/with-sdk"},{"title":"JWT without SDKs","href":"/guides/authentication/jwt/without-sdk"},{"title":"as-user header","href":"/guides/authentication/jwt/as-user"},{"title":"User access tokens","href":"/guides/authentication/jwt/user-access-tokens"}]},{"title":"Switch between CCG and JWT","href":"/guides/authentication/switch-server-auth-type"},{"group":"Tokens","root":{"title":"Tokens","sidebarTitle":"Overview","href":"/guides/authentication/tokens/index"},"pages":[{"title":"Access tokens","href":"/guides/authentication/tokens/access-tokens"},{"title":"Use a token","href":"/guides/authentication/tokens/api-calls"},{"title":"Refresh a token","href":"/guides/authentication/tokens/refresh"},{"title":"Revoke a token","href":"/guides/authentication/tokens/revoke"},{"title":"Downscope a token","href":"/guides/authentication/tokens/downscope"},{"title":"Use a token in SDKs","href":"/guides/authentication/tokens/sdks"},{"title":"Developer tokens","href":"/guides/authentication/tokens/developer-tokens"},{"title":"Annotator tokens","href":"/guides/authentication/tokens/annotator-tokens"}]},{"title":"Box API and SSO","sidebarTitle":"Enterprise SSO","href":"/guides/authentication/sso"},{"title":"Authentication best practices","sidebarTitle":"Best practices","href":"/guides/authentication/best-practices"}]},{"group":"Authorization","root":{"title":"Authorization","sidebarTitle":"Overview","href":"/guides/authorization/index"},"pages":[{"title":"Platform app approval","href":"/guides/authorization/platform-app-approval"},{"title":"Limited Access App Approval","href":"/guides/authorization/limited-access-approval"},{"title":"Common Errors","href":"/guides/authorization/common-errors"}]},{"group":"SSO \u0026 App users","root":{"title":"SSO \u0026 App users","href":"/guides/sso-identities-and-app-users/index"},"pages":[{"group":"Connect Okta identities to Box App Users in a web app","root":{"title":"Connect Okta identities to Box App Users in a web app","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/index"},"pages":[{"title":"Scaffold application code (Okta integration)","sidebarTitle":"1. Scaffold application code","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/scaffold-application-code"},{"title":"Configure Okta","sidebarTitle":"2. Configure Okta","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/configure-okta"},{"title":"Configure Box (Okta integration)","sidebarTitle":"3. Configure Box","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/configure-box"},{"title":"Logging into the app with Okta","sidebarTitle":"4. Logging into the app with Okta","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/logging-into-app"},{"title":"Find or create Box app users","sidebarTitle":"5. Find or create Box app users","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/find-or-create-box-users"},{"title":"Run the application","sidebarTitle":"6. Run the application","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/run-the-app"}]},{"title":"Connect SSO identities to app users","href":"/guides/sso-identities-and-app-users/connect-identities"},{"title":"Create connection between SSO identity and app user","href":"/guides/sso-identities-and-app-users/create-app-user"},{"title":"Find app user for SSO identity","href":"/guides/sso-identities-and-app-users/find-app-user"}]}]},{"group":"Using the API","pages":[{"title":"API Calls","href":"/guides/api-calls/index"},{"title":"Types and formats","href":"/guides/api-calls/types-and-formats"},{"title":"Status codes","href":"/guides/api-calls/status-codes"},{"title":"Sorting responses","href":"/guides/api-calls/sorting"},{"title":"Request extra fields","href":"/guides/api-calls/request-extra-fields"},{"title":"Ensure consistency with headers","href":"/guides/api-calls/ensure-consistency"},{"title":"Allow domain access","href":"/guides/api-calls/allowing-domain-access"},{"title":"Suppress notifications","href":"/guides/api-calls/suppress-notifications"},{"title":"Language codes","href":"/guides/api-calls/language-codes"},{"title":"API versioning strategy","href":"/guides/api-calls/api-versioning-strategy"},{"group":"Pagination","root":{"title":"Pagination","href":"/guides/api-calls/pagination/index"},"pages":[{"title":"Box API offset-based pagination","sidebarTitle":"Offset-based","href":"/guides/api-calls/pagination/offset-based"},{"title":"Marker-based Pagination","href":"/guides/api-calls/pagination/marker-based"}]},{"group":"Permissions and errors","root":{"title":"Box API errors","sidebarTitle":"Errors","href":"/guides/api-calls/permissions-and-errors/common-errors"},"pages":[{"title":"Box API rate limits","sidebarTitle":"Rate limits","href":"/guides/api-calls/permissions-and-errors/rate-limits"},{"title":"Box API scopes","sidebarTitle":"Scopes","href":"/guides/api-calls/permissions-and-errors/scopes"},{"title":"Token \u0026 URL Expiration","href":"/guides/api-calls/permissions-and-errors/expiration"},{"title":"Versioning errors","href":"/guides/api-calls/permissions-and-errors/versioning-errors"}]}]},{"group":"Troubleshooting","pages":[{"title":"Debugging your Box app","href":"/guides/troubleshooting/debugging-your-box-app"},{"title":"App Diagnostics Report","href":"/guides/troubleshooting/app-diagnostics-report"}]},{"group":"Content","pages":[{"group":"Files","pages":[{"title":"Get File Information","href":"/guides/files/get"},{"title":"File limitations","sidebarTitle":"Limitations","href":"/guides/files/limitations"}]},{"group":"Folders","pages":[{"title":"Create Folder","href":"/guides/folders/single/create"},{"title":"Update Folder","href":"/guides/folders/single/update"},{"title":"Rename Folder","href":"/guides/folders/single/rename"},{"title":"Move Folder","href":"/guides/folders/single/move"},{"title":"Copy Folder","href":"/guides/folders/single/copy"},{"title":"Delete Folder","href":"/guides/folders/single/delete"},{"title":"Change Folder Owner","href":"/guides/folders/single/change-owner"},{"title":"Create Folder Lock","href":"/guides/folders/single/create-lock"},{"title":"Get Folder Lock","href":"/guides/folders/single/get-locks"},{"title":"Delete Folder Lock","href":"/guides/folders/single/delete-lock"},{"title":"Build Folder Tree","href":"/guides/folders/bulk/build-folder-tree"}]},{"group":"Uploads","root":{"title":"Uploads","sidebarTitle":"Overview","href":"/guides/uploads/index"},"pages":[{"title":"Preflight Check","href":"/guides/uploads/check"},{"group":"Direct Uploads","root":{"title":"Direct Uploads","sidebarTitle":"Overview","href":"/guides/uploads/direct/index"},"pages":[{"title":"Upload New File","href":"/guides/uploads/direct/file"},{"title":"Upload File Version","href":"/guides/uploads/direct/file-version"}]},{"group":"Chunked Uploads","root":{"title":"Chunked uploads","sidebarTitle":"Overview","href":"/guides/uploads/chunked/index"},"pages":[{"title":"Create Upload Session","href":"/guides/uploads/chunked/create-session"},{"title":"Chunked Upload with SDKs","href":"/guides/uploads/chunked/with-sdks"},{"title":"Upload part","href":"/guides/uploads/chunked/upload-part"},{"title":"Commit upload session","href":"/guides/uploads/chunked/commit-session"},{"title":"Upload All Files in Folder","href":"/guides/uploads/chunked/folder"}]},{"group":"Tutorials","root":{"title":"Upload methods with Python","href":"/guides/uploads/tutorials/upload-methods-python"},"pages":[{"title":"Recursively upload a folder with Python","href":"/guides/uploads/tutorials/recursive-folder-upload-python"}]}]},{"group":"Downloads","root":{"title":"Downloads","sidebarTitle":"Overview","href":"/guides/downloads/index"},"pages":[{"title":"Download File","href":"/guides/downloads/file"},{"title":"Download File Version","href":"/guides/downloads/file-version"},{"title":"Get Download URL","href":"/guides/downloads/get-url"},{"title":"Download Shared Link","href":"/guides/downloads/shared-link"},{"title":"Download All Files in Folder using SDKs","href":"/guides/downloads/folder"},{"title":"Download in Browser","href":"/guides/downloads/in-browser"},{"title":"Download ZIP Archive","href":"/guides/downloads/zip-archive"}]},{"group":"Web Links","root":{"title":"Web Links","sidebarTitle":"Overview","href":"/guides/web-links/index"},"pages":[{"title":"Create Web Link","href":"/guides/web-links/create"},{"title":"Delete Web Link","href":"/guides/web-links/delete"}]},{"group":"Trash","root":{"title":"Trash","sidebarTitle":"Overview","href":"/guides/trash/index"},"pages":[{"title":"Restore File","href":"/guides/trash/restore-file"},{"title":"Permanently Delete File","href":"/guides/trash/permanently-delete-file"},{"title":"Restore Folder","href":"/guides/trash/restore-folder"},{"title":"Permanently Delete Folder","href":"/guides/trash/permanently-delete-folder"},{"title":"Restore Web Link","href":"/guides/trash/restore-web-link"},{"title":"Permanently Delete Web Link","href":"/guides/trash/permanently-delete-web-link"}]},{"group":"Representations","root":{"title":"Representations","sidebarTitle":"Overview","href":"/guides/representations/index"},"pages":[{"title":"List All Representations for File","href":"/guides/representations/list-all-representations"},{"title":"Request Desired Representation","href":"/guides/representations/request-a-representation"},{"title":"Download File Representation","href":"/guides/representations/download-a-representation"},{"title":"Get Thumbnail Representation","href":"/guides/representations/thumbnail-representation"},{"title":"Get Basic Thumbnail","href":"/guides/representations/thumbnail"},{"title":"Get Markdown Representation","href":"/guides/representations/markdown"},{"title":"Get Text Representation","href":"/guides/representations/text"},{"title":"Get PDF Representation","href":"/guides/representations/pdf"},{"title":"Supported File Types","href":"/guides/representations/supported-file-types"}]},{"group":"Box Archive","root":{"title":"Box Archive","sidebarTitle":"Overview","href":"/guides/archives/index"},"pages":[{"title":"Add content to Box Archive","href":"/guides/archives/add-content"},{"title":"Restore content from Box Archive","href":"/guides/archives/restore-content"},{"title":"Supported APIs for Box Archive","href":"/guides/archives/supported-apis"}]}]},{"group":"Collaboration","pages":[{"group":"Collaborations","root":{"title":"Collaborations","sidebarTitle":"Overview","href":"/guides/collaborations/index"},"pages":[{"group":"Connect Slack to Group Collaborations","root":{"title":"Connect Slack to Box Group Collaborations","href":"/guides/collaborations/connect-slack-to-group-collabs/index"},"pages":[{"title":"Configure Slack","sidebarTitle":"1. Configure Slack","href":"/guides/collaborations/connect-slack-to-group-collabs/configure-slack"},{"title":"Configure Box (Slack integration)","sidebarTitle":"2. Configure Box","href":"/guides/collaborations/connect-slack-to-group-collabs/configure-box"},{"title":"Scaffold application code (Slack integration)","sidebarTitle":"3. Scaffold application code","href":"/guides/collaborations/connect-slack-to-group-collabs/scaffold-application-code"},{"title":"Handle Slack Events","sidebarTitle":"4. Handle Slack Events","description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/handle-slack-events"},{"title":"Connect Bot to Box","sidebarTitle":"5. Connect Bot to Box","href":"/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions"},{"title":"Test the bot","sidebarTitle":"6. Test the bot","description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/test-bot"}]},{"title":"Share Content with User","href":"/guides/collaborations/share-content"},{"title":"Sharing with Groups","href":"/guides/collaborations/groups"},{"title":"Get Pending Collaborations","href":"/guides/collaborations/pending"},{"group":"Allowed Domains","root":{"title":"Allowed collaboration domains overview","sidebarTitle":"Overview","href":"/guides/collaborations/allowed-domains/index"},"pages":[{"title":"Allow a domain for collaboration","href":"/guides/collaborations/allowed-domains/create"},{"title":"List allowed domains for collaboration","href":"/guides/collaborations/allowed-domains/list"},{"title":"Remove a previously allowed domain for collaboration","href":"/guides/collaborations/allowed-domains/delete"}]}]},{"group":"Shared Links","root":{"title":"Shared Links","sidebarTitle":"Overview","href":"/guides/shared-links/index"},"pages":[{"title":"Create or Update Shared Link","href":"/guides/shared-links/create-or-update"},{"title":"Find Item from Shared Link","href":"/guides/shared-links/find-for-item"},{"title":"Remove Shared Link","href":"/guides/shared-links/remove"},{"title":"Shared Link Permissions","href":"/guides/shared-links/permissions"}]},{"group":"Comments","root":{"title":"Comments","href":"/guides/comments/index"},"pages":[{"title":"Create Comment","href":"/guides/comments/create-comment"},{"title":"Create Reply","href":"/guides/comments/create-reply"}]},{"group":"Tasks","root":{"title":"Tasks","href":"/guides/tasks/index"},"pages":[{"title":"Create a task","href":"/guides/tasks/create"},{"title":"Get information about a task","href":"/guides/tasks/get"},{"title":"Lists all tasks for a file","href":"/guides/tasks/for-file"},{"title":"Make changes to an existing task","href":"/guides/tasks/update"},{"title":"Delete a task","href":"/guides/tasks/delete"},{"group":"Assigning tasks","root":{"title":"Assigning tasks","sidebarTitle":"Overview","href":"/guides/tasks/assignments/index"},"pages":[{"title":"Assign a task to a user","href":"/guides/tasks/assignments/assign"},{"title":"Unassign a task","href":"/guides/tasks/assignments/unassign"},{"title":"Change an assignment's message","href":"/guides/tasks/assignments/update-message"},{"title":"Get task assignment information","href":"/guides/tasks/assignments/get"},{"title":"List a task's assignments","href":"/guides/tasks/assignments/list"},{"title":"Change task assignment state","href":"/guides/tasks/assignments/change-state"}]}]},{"group":"Collections","root":{"title":"Collections","href":"/guides/collections/index"},"pages":[{"title":"List User's Collections","href":"/guides/collections/list"},{"title":"List Items in Collections","href":"/guides/collections/list-items"},{"title":"Add Item to Collection","href":"/guides/collections/add"},{"title":"Remove Item from Collection","href":"/guides/collections/remove"}]},{"group":"File Requests","root":{"title":"File Requests","sidebarTitle":"Overview","href":"/guides/file-requests/index"},"pages":[{"title":"Create a template File Request","href":"/guides/file-requests/template"},{"title":"Copy a File Request","href":"/guides/file-requests/copy"},{"title":"Get information for a File Request","href":"/guides/file-requests/get"},{"title":"Update a File Request","href":"/guides/file-requests/update"},{"title":"Delete a File Request","href":"/guides/file-requests/delete"}]},{"group":"Box Notes","root":{"title":"Box Notes API","sidebarTitle":"Overview","href":"/guides/box-notes/index"},"pages":[{"title":"Get started with Box Notes API","href":"/guides/box-notes/get-started"},{"title":"Convert Markdown to Box Note","href":"/guides/box-notes/convert-markdown"},{"title":"Box Notes API use cases","href":"/guides/box-notes/use-cases"}]},{"group":"Box Hubs","root":{"title":"Box Hubs","href":"/guides/hubs-api/index"},"pages":[{"title":"Turn an enterprise document repository into an access-controlled AI knowledge base","sidebarTitle":"Access-controlled knowledge base","href":"/guides/hubs-api/access-controlled-knowledge-base"},{"title":"Hubs APIs use cases","href":"/guides/hubs-api/use-cases"},{"group":"Hubs","root":{"title":"Create a hub","href":"/guides/hubs-api/hubs/create-hub"},"pages":[{"title":"Get a hub","href":"/guides/hubs-api/hubs/get-hub"},{"title":"List hubs","href":"/guides/hubs-api/hubs/list-hubs"},{"title":"Update a hub","href":"/guides/hubs-api/hubs/update-hub"},{"title":"Delete a hub","href":"/guides/hubs-api/hubs/delete-hub"},{"title":"Copy a hub","href":"/guides/hubs-api/hubs/copy-hub"}]},{"title":"Manage hub items","href":"/guides/hubs-api/hubs-items/hub-items"},{"title":"Manage hub collaborations","href":"/guides/hubs-api/hubs-collaborations/hub-collaborations"}]}]},{"group":"Metadata \u0026 search","pages":[{"group":"Metadata","root":{"sidebarTitle":"Overview","title":"Metadata","href":"/guides/metadata/index"},"pages":[{"group":"Working with Metadata","root":{"title":"Working with Metadata","sidebarTitle":"Overview","href":"/guides/metadata/quick-start/index"},"pages":[{"title":"List all metadata templates (quick start)","sidebarTitle":"1. List all metadata templates","href":"/guides/metadata/quick-start/list-all"},{"title":"Create a custom metadata template","sidebarTitle":"2. Create a custom metadata template","href":"/guides/metadata/quick-start/create-template"},{"title":"Apply metadata to a file","sidebarTitle":"3. Apply metadata to a file","href":"/guides/metadata/quick-start/create-instance"},{"title":"Update metadata on a file","sidebarTitle":"4. Update metadata on a file","href":"/guides/metadata/quick-start/update-instance"},{"title":"Update a metadata template (quick start)","sidebarTitle":"5. Update a metadata template","href":"/guides/metadata/quick-start/update-template"},{"title":"Create a metadata query","sidebarTitle":"6. Create a metadata query","href":"/guides/metadata/quick-start/create-query"},{"title":"Metadata quick start: next steps","sidebarTitle":"Next steps","href":"/guides/metadata/quick-start/next-steps"}]},{"title":"Metadata template scopes","href":"/guides/metadata/scopes"},{"title":"Classifications","href":"/guides/metadata/classifications"},{"group":"Metadata templates","root":{"title":"Metadata templates overview","sidebarTitle":"Overview","href":"/guides/metadata/templates/index"},"pages":[{"title":"List all metadata templates","href":"/guides/metadata/templates/list"},{"title":"Get a metadata template","href":"/guides/metadata/templates/get"},{"title":"Create a metadata template","href":"/guides/metadata/templates/create"},{"title":"Update a metadata template","href":"/guides/metadata/templates/update"},{"title":"Delete a metadata template","href":"/guides/metadata/templates/delete"}]},{"group":"Metadata taxonomies","root":{"title":"Metadata taxonomies overview","sidebarTitle":"Overview","href":"/guides/metadata/taxonomies/index"},"pages":[{"title":"Create metadata taxonomy items","href":"/guides/metadata/taxonomies/create"},{"title":"List metadata taxonomies","href":"/guides/metadata/taxonomies/list"},{"title":"Get metadata taxonomy items","href":"/guides/metadata/taxonomies/get"},{"title":"Update metadata taxonomies","href":"/guides/metadata/taxonomies/update"},{"title":"Remove metadata taxonomy items","href":"/guides/metadata/taxonomies/remove"}]},{"group":"Metadata fields","root":{"title":"Metadata fields","sidebarTitle":"Overview","href":"/guides/metadata/fields/index"},"pages":[{"title":"String metadata field","href":"/guides/metadata/fields/string"},{"title":"Float metadata field","href":"/guides/metadata/fields/float"},{"title":"Date metadata field","href":"/guides/metadata/fields/date"},{"title":"Enum metadata field","href":"/guides/metadata/fields/enum"},{"title":"Multi Select metadata field","href":"/guides/metadata/fields/multi-select"}]},{"group":"Metadata instances","root":{"title":"Metadata instances overview","sidebarTitle":"Overview","href":"/guides/metadata/instances/index"},"pages":[{"title":"List all metadata on an item","href":"/guides/metadata/instances/list"},{"title":"Get metadata on item","href":"/guides/metadata/instances/get"},{"title":"Apply metadata to an item","href":"/guides/metadata/instances/create"},{"title":"Update metadata on an item","href":"/guides/metadata/instances/update"},{"title":"Remove metadata from an item","href":"/guides/metadata/instances/delete"}]},{"group":"Metadata queries","root":{"title":"Metadata queries","sidebarTitle":"Overview","href":"/guides/metadata/queries/index"},"pages":[{"title":"Create a query","href":"/guides/metadata/queries/create"},{"title":"Query syntax","href":"/guides/metadata/queries/syntax"},{"title":"Query item fields","href":"/guides/metadata/queries/item-fields"},{"title":"Common errors","href":"/guides/metadata/queries/errors"},{"title":"Metadata query limitations","sidebarTitle":"Limitations","href":"/guides/metadata/queries/limitations"},{"title":"Paginate and sort","href":"/guides/metadata/queries/pagination"},{"title":"Comparison to regular search","href":"/guides/metadata/queries/comparison"}]},{"group":"Metadata cascade policies","root":{"title":"Metadata cascade policies overview","sidebarTitle":"Overview","href":"/guides/metadata/cascades/index"},"pages":[{"title":"List metadata cascade policies","href":"/guides/metadata/cascades/list"},{"title":"Get a metadata cascade policy","href":"/guides/metadata/cascades/get"},{"title":"Create a metadata cascade policy","href":"/guides/metadata/cascades/create"},{"title":"Force-apply metadata to all items in a folder","href":"/guides/metadata/cascades/force-apply"},{"title":"Delete a metadata cascade policy","href":"/guides/metadata/cascades/delete"}]}]},{"group":"Query","root":{"title":"Box query","href":"/guides/query/box-query"},"pages":[{"title":"Query insights","href":"/guides/query/insights"}]},{"group":"Search","root":{"title":"Search","sidebarTitle":"Overview","href":"/guides/search/index"},"pages":[{"group":"Search content using metadata","root":{"title":"Search content using metadata","sidebarTitle":"Overview","href":"/guides/search/quick-start/index"},"pages":[{"title":"Create a Metadata Template","sidebarTitle":"1. Create a Metadata Template","href":"/guides/search/quick-start/create-metadata-template"},{"title":"Locate Information about a Metadata Template","sidebarTitle":"2. Locate Information about a Metadata Template","href":"/guides/search/quick-start/locate-template-info"},{"title":"Add Metadata Template to a File","sidebarTitle":"3. Add Metadata Template to a File","href":"/guides/search/quick-start/apply-template-to-file"},{"title":"Use the Metadata Query API","sidebarTitle":"4. Use the Metadata Query API","href":"/guides/search/quick-start/metadata-query-api"},{"title":"Next Steps","sidebarTitle":"5. Next Steps","href":"/guides/search/quick-start/next-steps"}]},{"title":"Search indexing","href":"/guides/search/indexing"},{"title":"Query operators","href":"/guides/search/query-operators"},{"title":"Filter search results","href":"/guides/search/filtering"},{"title":"Search result pagination","sidebarTitle":"Pagination","href":"/guides/search/pagination"},{"title":"Metadata Query Filters","href":"/guides/search/metadata-filters"},{"title":"Enterprise-wide search","href":"/guides/search/enterprise"},{"title":"Searching trash","href":"/guides/search/trash"},{"title":"Finding recent shared links","href":"/guides/search/shared-links"},{"title":"Requesting extra fields","href":"/guides/search/fields"}]}]},{"group":"Events \u0026 webhooks","pages":[{"group":"Events","root":{"title":"Events","href":"/guides/events/index"},"pages":[{"group":"User Events","root":{"title":"User Events","sidebarTitle":"Overview","href":"/guides/events/user-events/index"},"pages":[{"title":"Get User Events","href":"/guides/events/user-events/for-user"},{"title":"Long-Poll Events","href":"/guides/events/user-events/polling"}]},{"group":"Enterprise Events","root":{"title":"Enterprise Events","sidebarTitle":"Overview","href":"/guides/events/enterprise-events/index"},"pages":[{"title":"Get Enterprise Events","href":"/guides/events/enterprise-events/for-enterprise"},{"title":"Migrating From History To Stream","href":"/guides/events/enterprise-events/migrate-to-stream"}]},{"group":"Event Stream Parameters","root":{"title":"Stream Types","href":"/guides/events/parameters/stream-types"},"pages":[{"title":"Stream Position Pagination","href":"/guides/events/parameters/pagination"}]},{"group":"Event Triggers","root":{"title":"Event Triggers","sidebarTitle":"Overview","href":"/guides/events/event-triggers/index"},"pages":[{"title":"Event Source","href":"/guides/events/event-triggers/event-source"},{"title":"AI Security Detection Events","href":"/guides/events/event-triggers/ai-security-detection-events"},{"title":"Shared link one-time passcode events","sidebarTitle":"Shared link OTP events","href":"/guides/events/event-triggers/shared-link-otp-events"},{"title":"Shield Alert Events","href":"/guides/events/event-triggers/shield-alert-events"},{"title":"Shield Information Barrier Events","href":"/guides/events/event-triggers/shield-information-barrier-events"},{"title":"Shield Smart Access Events","href":"/guides/events/event-triggers/shield-smart-access-events"},{"title":"Sign Events","href":"/guides/events/event-triggers/sign-events"}]}]},{"group":"Webhooks","root":{"title":"Webhooks","href":"/guides/webhooks/index"},"pages":[{"title":"Webhook Event Triggers","href":"/guides/webhooks/triggers"},{"group":"V1 Webhooks","root":{"title":"V1 Webhooks","href":"/guides/webhooks/v1/index"},"pages":[{"title":"Create webhooks (v1)","sidebarTitle":"Create webhooks","href":"/guides/webhooks/v1/create-v1"},{"title":"Delete webhooks (v1)","sidebarTitle":"Delete webhooks","href":"/guides/webhooks/v1/delete-v1"}]},{"group":"V2 Webhooks","root":{"title":"V2 webhooks","href":"/guides/webhooks/v2/index"},"pages":[{"title":"List Webhooks for a User","href":"/guides/webhooks/v2/list-v2"},{"title":"Create webhooks (v2)","sidebarTitle":"Create webhooks","href":"/guides/webhooks/v2/create-v2"},{"title":"Update Webhooks","href":"/guides/webhooks/v2/update-v2"},{"title":"Delete webhooks (v2)","sidebarTitle":"Delete webhooks","href":"/guides/webhooks/v2/delete-v2"},{"title":"Verify Box webhook signatures","href":"/guides/webhooks/v2/signatures-v2"},{"title":"Webhook limitations","sidebarTitle":"Limitations","href":"/guides/webhooks/v2/limitations-v2"}]}]}]},{"group":"Users","pages":[{"title":"Users in Box API","href":"/guides/users/index"},{"title":"Create Managed User","href":"/guides/users/create-managed-user"},{"title":"Create App User","href":"/guides/users/create-app-user"},{"title":"Delete User","href":"/guides/users/delete-user"},{"title":"Bulk delete external users","href":"/guides/users/bulk-delete-external-users"},{"group":"Provision Users","root":{"title":"Provision Users","sidebarTitle":"Overview","href":"/guides/users/provision/index"},"pages":[{"title":"Create Architecture Skeleton","href":"/guides/users/provision/architecture"},{"title":"Populate Content","href":"/guides/users/provision/populate-content"},{"title":"Setup Shared Folders","href":"/guides/users/provision/shared-folders"}]},{"group":"Deprovision Users","root":{"title":"Deprovision Users","sidebarTitle":"Overview","href":"/guides/users/deprovision/index"},"pages":[{"title":"Transfer Files \u0026 Folders","href":"/guides/users/deprovision/transfer-folders"}]}]},{"group":"Intelligent workflow","pages":[{"title":"Intelligent workflow with Box","href":"/guides/intelligent-workflow/index"},{"group":"Box Automate","root":{"title":"Box Automate","sidebarTitle":"Overview","href":"/guides/box-automate/index"},"pages":[{"title":"Get started with Box Automate","sidebarTitle":"Get started","href":"/guides/box-automate/getting-started-box-automate"},{"title":"Triggers, outcomes, and logic in Box Automate","sidebarTitle":"Triggers and logic","href":"/guides/box-automate/triggers-and-logic"}]},{"group":"Box Doc Gen","root":{"title":"Box Doc Gen","sidebarTitle":"Overview","href":"/guides/docgen/index"},"pages":[{"title":"Get started with Box Doc Gen","href":"/guides/docgen/docgen-getting-started"},{"title":"Mark file as Box Doc Gen template","href":"/guides/docgen/mark-template"},{"title":"Generate documents","href":"/guides/docgen/generate-document"},{"title":"Box Doc Gen templates","href":"/guides/docgen/docgen-templates"},{"title":"Box Doc Gen jobs","href":"/guides/docgen/docgen-jobs"},{"title":"Box Doc Split","href":"/guides/docgen/doc-split"},{"title":"Manual split","href":"/guides/docgen/manual-split"},{"title":"Smart split","href":"/guides/docgen/smart-split"}]},{"group":"Box Relay","root":{"title":"Box Relay","sidebarTitle":"Overview","href":"/guides/box-relay/index"},"pages":[{"title":"Get Workflows","href":"/guides/box-relay/get-workflows"},{"title":"Start Workflow","href":"/guides/box-relay/start-workflow"}]}]},{"group":"E-signatures","pages":[{"title":"Box Sign","href":"/guides/box-sign/index"},{"title":"Set up Box Sign","sidebarTitle":"Setup","href":"/guides/box-sign/setup"},{"title":"Quick start","sidebarTitle":"Quick start","href":"/guides/box-sign/quick-start"},{"group":"Document types","root":{"sidebarTitle":"Overview","title":"Document types","href":"/guides/box-sign/document-types/index"},"pages":[{"title":"Signing unstructured docs","sidebarTitle":"Unstructured","href":"/guides/box-sign/document-types/unstructured"},{"title":"Signing structured docs","sidebarTitle":"Structured","href":"/guides/box-sign/document-types/structured"},{"title":"Create a sign request with a template","sidebarTitle":"Templates","href":"/guides/box-sign/document-types/sign-templates"}]},{"group":"Create and configure","root":{"title":"Create a Box Sign request","sidebarTitle":"Create a request","href":"/guides/box-sign/create-sign-request"},"pages":[{"title":"Multiple signers and signing order","sidebarTitle":"Multiple signers","href":"/guides/box-sign/multiple-signers"},{"title":"Verify signer identity","sidebarTitle":"Signer verification","href":"/guides/box-sign/signer-verification"},{"title":"In-person signing","sidebarTitle":"In-person signing","href":"/guides/box-sign/in-person-signing"},{"title":"21 CFR Part 11 requests","sidebarTitle":"21 CFR Part 11","href":"/guides/box-sign/cfr-part-11"},{"title":"Deliver the request to signers","sidebarTitle":"Deliver to signers","href":"/guides/box-sign/how-signers-get-the-request"}]},{"group":"Manage requests","root":{"title":"List and get Box Sign requests","sidebarTitle":"List and get requests","href":"/guides/box-sign/list-sign-requests"},"pages":[{"title":"Resend a Box Sign request","sidebarTitle":"Resend a request","href":"/guides/box-sign/resend-sign-request"},{"title":"Cancel a Box Sign request","sidebarTitle":"Cancel a request","href":"/guides/box-sign/cancel-sign-request"},{"title":"Box Sign webhooks","sidebarTitle":"Webhooks","href":"/guides/box-sign/webhooks"}]},{"group":"Reference","root":{"title":"Box Sign endpoints","sidebarTitle":"Endpoints","href":"/guides/box-sign/api-endpoints"},"pages":[{"title":"Box Sign request status","sidebarTitle":"Request status","href":"/guides/box-sign/request-status"}]}]},{"group":"Security \u0026 compliance","pages":[{"group":"Security","root":{"title":"Security","sidebarTitle":"Overview","href":"/guides/security/index"},"pages":[{"title":"FedRAMP","href":"/guides/security/fedramp"},{"title":"Device Pinners","href":"/guides/security/device-pinners"},{"title":"Cross-Origin Resource Sharing (CORS)","href":"/guides/security/cors"},{"group":"Terms of Service","root":{"title":"Terms of Service","sidebarTitle":"Overview","href":"/guides/security/terms-of-service/index"},"pages":[{"title":"Application Flow","href":"/guides/security/terms-of-service/flow"},{"title":"Find Terms for Collaboration","href":"/guides/security/terms-of-service/for-colaboration"},{"title":"Permissions","href":"/guides/security/terms-of-service/permissions"}]}]},{"group":"Legal Holds","root":{"title":"Legal Holds","sidebarTitle":"Overview","href":"/guides/legal-holds/index"},"pages":[{"title":"List All Legal Hold Policies","href":"/guides/legal-holds/list"},{"title":"Get Legal Hold Policy","href":"/guides/legal-holds/get"}]},{"group":"Retention Policies","root":{"title":"Retention Policies","sidebarTitle":"Overview","href":"/guides/retention-policies/index"},"pages":[{"title":"List All Retention Policies","href":"/guides/retention-policies/list"},{"title":"Get Retention Policy","href":"/guides/retention-policies/get"}]}]}]},{"tab":"AI","pages":[{"title":"AI","href":"/ai"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/reference"}]},{"tab":"Tools","pages":[{"title":"Tools","href":"/sdks-and-tools"}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/tutorials"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/2026"}]}],"global":{"anchors":[{"anchor":"Box","icon":"https://mintlify.s3.us-west-1.amazonaws.com/box/images/sidebar/box.svg","href":"https://www.box.com/home"},{"anchor":"Community","icon":"book-open-cover","href":"https://community.box.com/box-platform-5"},{"anchor":"Developer Blog","icon":"newspaper","href":"https://blog.box.com/developer"},{"anchor":"Box SDKs","icon":"code","href":"https://github.com/box/sdks"},{"anchor":"Box Docs","icon":"file-lines","href":"https://docs.box.com"}]}},{"language":"ja","banner":{"content":"Join BoxWorks Dev Summit on Nov 5-6, San Francisco and dive into AI agents and unstructured content. [See agenda](https://boxworks.box.com/series/boxworks-2026-dev-summit/landing_page).","dismissible":true},"footer":{"socials":{"x":"https://x.com/box","github":"https://github.com/box-community","linkedin":"https://linkedin.com/company/box","youtube":"https://www.youtube.com/user/box","facebook":"https://www.facebook.com/box"},"links":[{"header":"リソース","items":[{"label":"ニュースレターの登録解除","href":"https://go.box.com/preferences.html"},{"label":"利用規約","href":"https://cloud.app.box.com/s/rmwxu64h1ipr41u49w3bbuvbsa29wku9"},{"label":"個人情報保護方針","href":"https://www.box.com/en-gb/legal/privacypolicy?url_redirect=direct"},{"label":"Cookieに関する通知","href":"https://www.box.com/en-gb/legal/cookie-notification?url_redirect=direct"},{"label":"llms.txt","href":"https://developer.box.com/llms.txt"}]}]},"navbar":{"links":[{"href":"https://account.box.com/developers/console","label":"ログイン","type":"button"}],"primary":{"type":"button","label":"今すぐ無料で開始","href":"https://account.box.com/signup/developer"}},"pages":[{"title":"ja","href":"/ja/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions"}]}]},"title":"Connect Bot to Box - Box Dev Docs","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["10e4515597"],"chunks":["BannerMarkdown-m8-xYP3Y.js","dist-1ms6tsT-.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-DMKzROTp.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js"]}