import{s as R,o as V,n as Y}from"../chunks/scheduler.d6170356.js";import{S as B,i as F,g as m,s as c,r as C,A as G,h as d,f as n,c as l,j as I,u as E,x as _,k as P,y as J,a as o,v as U,d as j,t as q,w as D}from"../chunks/index.fcd4cc08.js";import{T as K}from"../chunks/Tip.b09c67cf.js";import{H as N}from"../chunks/Heading.8660bd0e.js";function Q(v){let a,p='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(){a=m("p"),a.innerHTML=p},l(s){a=d(s,"P",{"data-svelte-h":!0}),_(a)!=="svelte-qbhm5n"&&(a.innerHTML=p)},m(s,$){o(s,a,$)},p:Y,d(s){s&&n(a)}}}function W(v){let a,p,s,$,u,w,i,z,f,x="Members of organizations can have four different roles: <code>read</code>, <code>contributor</code>, <code>write</code> or <code>admin</code>:",T,g,O="<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>",M,h,k="As an organization <code>admin</code>, go to the <strong>Members</strong> section of the org settings to manage roles for users.",y,r,A='<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"/>',H,b,L;return u=new N({props:{title:"Access control in organizations",local:"access-control-in-organizations",headingTag:"h1"}}),i=new K({props:{$$slots:{default:[Q]},$$scope:{ctx:v}}}),{c(){a=m("meta"),p=c(),s=m("p"),$=c(),C(u.$$.fragment),w=c(),C(i.$$.fragment),z=c(),f=m("p"),f.innerHTML=x,T=c(),g=m("ul"),g.innerHTML=O,M=c(),h=m("p"),h.innerHTML=k,y=c(),r=m("div"),r.innerHTML=A,H=c(),b=m("p"),this.h()},l(e){const t=G("svelte-u9bgzb",document.head);a=d(t,"META",{name:!0,content:!0}),t.forEach(n),p=l(e),s=d(e,"P",{}),I(s).forEach(n),$=l(e),E(u.$$.fragment,e),w=l(e),E(i.$$.fragment,e),z=l(e),f=d(e,"P",{"data-svelte-h":!0}),_(f)!=="svelte-1m5dp8a"&&(f.innerHTML=x),T=l(e),g=d(e,"UL",{"data-svelte-h":!0}),_(g)!=="svelte-1f9it2o"&&(g.innerHTML=O),M=l(e),h=d(e,"P",{"data-svelte-h":!0}),_(h)!=="svelte-kf3l5c"&&(h.innerHTML=k),y=l(e),r=d(e,"DIV",{class:!0,"data-svelte-h":!0}),_(r)!=="svelte-1d302st"&&(r.innerHTML=A),H=l(e),b=d(e,"P",{}),I(b).forEach(n),this.h()},h(){P(a,"name","hf:doc:metadata"),P(a,"content",X),P(r,"class","flex justify-center")},m(e,t){J(document.head,a),o(e,p,t),o(e,s,t),o(e,$,t),U(u,e,t),o(e,w,t),U(i,e,t),o(e,z,t),o(e,f,t),o(e,T,t),o(e,g,t),o(e,M,t),o(e,h,t),o(e,y,t),o(e,r,t),o(e,H,t),o(e,b,t),L=!0},p(e,[t]){const S={};t&2&&(S.$$scope={dirty:t,ctx:e}),i.$set(S)},i(e){L||(j(u.$$.fragment,e),j(i.$$.fragment,e),L=!0)},o(e){q(u.$$.fragment,e),q(i.$$.fragment,e),L=!1},d(e){e&&(n(p),n(s),n($),n(w),n(z),n(f),n(T),n(g),n(M),n(h),n(y),n(r),n(H),n(b)),n(a),D(u,e),D(i,e)}}}const X='{"title":"Access control in organizations","local":"access-control-in-organizations","sections":[],"depth":1}';function Z(v){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class oe extends B{constructor(a){super(),F(this,a,Z,W,R,{})}}export{oe as component};
