import{s as F,o as J,n as B}from"../chunks/scheduler.d6170356.js";import{S as K,i as N,g as f,s as p,r as k,A as Q,h as u,f as a,c as d,j as V,u as O,x as v,k as A,y as W,a as s,v as C,d as S,t as E,w as I}from"../chunks/index.fcd4cc08.js";import{T as Y}from"../chunks/Tip.b09c67cf.js";import{H as X}from"../chunks/Heading.8660bd0e.js";function Z(T){let n,c='You can set up <a href="./security-sso">Single Sign-On (SSO)</a> to be able to map access control rules from your organization’s Identity Provider.';return{c(){n=f("p"),n.innerHTML=c},l(i){n=u(i,"P",{"data-svelte-h":!0}),v(n)!=="svelte-qbhm5n"&&(n.innerHTML=c)},m(i,o){s(i,n,o)},p:B,d(i){i&&a(n)}}}function ee(T){let n,c='Advanced and more fine-grained access control can be achieved with <a href="./security-resource-groups">Resource Groups</a>.',i,o,m='The Resource Group feature is part of the <a href="https://huggingface.co/enterprise" target="_blank">Enterprise Hub</a>.';return{c(){n=f("p"),n.innerHTML=c,i=p(),o=f("p"),o.innerHTML=m},l(r){n=u(r,"P",{"data-svelte-h":!0}),v(n)!=="svelte-17i0wym"&&(n.innerHTML=c),i=d(r),o=u(r,"P",{"data-svelte-h":!0}),v(o)!=="svelte-rdrrta"&&(o.innerHTML=m)},m(r,l){s(r,n,l),s(r,i,l),s(r,o,l)},p:B,d(r){r&&(a(n),a(i),a(o))}}}function te(T){let n,c,i,o,m,r,l,M,g,H,$,R="Members of organizations can have four different roles: <code>read</code>, <code>contributor</code>, <code>write</code> or <code>admin</code>:",z,_,U="<li><p><code>read</code>: read-only access to the Organization’s repos and metadata/settings (eg, the Organization’s profile, members list, API token, etc).</p></li> <li><p><code>contributor</code>: additional write rights to the subset of the Organization’s repos that were created by the user. I.e., users can create repos and <em>then</em> modify only those repos. This is similar to the <code>write</code> role, but scoped to repos <em>created</em> by the user.</p></li> <li><p><code>write</code>: write rights to all the Organization’s repos. Users can create, delete or rename any repo in the Organization namespace. A user can also edit and delete files from the browser editor and push content with <code>git</code>.</p></li> <li><p><code>admin</code>: in addition to write rights on repos, admin members can update the Organization’s profile, refresh the Organization’s API token, and manage Organization members.</p></li>",L,b,j="As an organization <code>admin</code>, go to the <strong>Members</strong> section of the org settings to manage roles for users.",P,h,q='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/org-members-page.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/org-members-page-dark.png"/>',y,w,x;return m=new X({props:{title:"Access control in organizations",local:"access-control-in-organizations",headingTag:"h1"}}),l=new Y({props:{$$slots:{default:[Z]},$$scope:{ctx:T}}}),g=new Y({props:{$$slots:{default:[ee]},$$scope:{ctx:T}}}),{c(){n=f("meta"),c=p(),i=f("p"),o=p(),k(m.$$.fragment),r=p(),k(l.$$.fragment),M=p(),k(g.$$.fragment),H=p(),$=f("p"),$.innerHTML=R,z=p(),_=f("ul"),_.innerHTML=U,L=p(),b=f("p"),b.innerHTML=j,P=p(),h=f("div"),h.innerHTML=q,y=p(),w=f("p"),this.h()},l(e){const t=Q("svelte-u9bgzb",document.head);n=u(t,"META",{name:!0,content:!0}),t.forEach(a),c=d(e),i=u(e,"P",{}),V(i).forEach(a),o=d(e),O(m.$$.fragment,e),r=d(e),O(l.$$.fragment,e),M=d(e),O(g.$$.fragment,e),H=d(e),$=u(e,"P",{"data-svelte-h":!0}),v($)!=="svelte-1m5dp8a"&&($.innerHTML=R),z=d(e),_=u(e,"UL",{"data-svelte-h":!0}),v(_)!=="svelte-1f9it2o"&&(_.innerHTML=U),L=d(e),b=u(e,"P",{"data-svelte-h":!0}),v(b)!=="svelte-kf3l5c"&&(b.innerHTML=j),P=d(e),h=u(e,"DIV",{class:!0,"data-svelte-h":!0}),v(h)!=="svelte-1d302st"&&(h.innerHTML=q),y=d(e),w=u(e,"P",{}),V(w).forEach(a),this.h()},h(){A(n,"name","hf:doc:metadata"),A(n,"content",ne),A(h,"class","flex justify-center")},m(e,t){W(document.head,n),s(e,c,t),s(e,i,t),s(e,o,t),C(m,e,t),s(e,r,t),C(l,e,t),s(e,M,t),C(g,e,t),s(e,H,t),s(e,$,t),s(e,z,t),s(e,_,t),s(e,L,t),s(e,b,t),s(e,P,t),s(e,h,t),s(e,y,t),s(e,w,t),x=!0},p(e,[t]){const G={};t&2&&(G.$$scope={dirty:t,ctx:e}),l.$set(G);const D={};t&2&&(D.$$scope={dirty:t,ctx:e}),g.$set(D)},i(e){x||(S(m.$$.fragment,e),S(l.$$.fragment,e),S(g.$$.fragment,e),x=!0)},o(e){E(m.$$.fragment,e),E(l.$$.fragment,e),E(g.$$.fragment,e),x=!1},d(e){e&&(a(c),a(i),a(o),a(r),a(M),a(H),a($),a(z),a(_),a(L),a(b),a(P),a(h),a(y),a(w)),a(n),I(m,e),I(l,e),I(g,e)}}}const ne='{"title":"Access control in organizations","local":"access-control-in-organizations","sections":[],"depth":1}';function ae(T){return J(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class le extends K{constructor(n){super(),N(this,n,ae,te,F,{})}}export{le as component};
