mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-11-09 10:19:16 +00:00
1 line
9.3 KiB
JavaScript
1 line
9.3 KiB
JavaScript
"use strict";(self.webpackChunkrancher_docs=self.webpackChunkrancher_docs||[]).push([[32991],{3905:(e,t,a)=>{a.d(t,{Zo:()=>m,kt:()=>d});var r=a(67294);function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function i(e,t){if(null==e)return{};var a,r,n=function(e,t){if(null==e)return{};var a,r,n={},s=Object.keys(e);for(r=0;r<s.length;r++)a=s[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)a=s[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var l=r.createContext({}),p=function(e){var t=r.useContext(l),a=t;return e&&(a="function"==typeof e?e(t):o(o({},t),e)),a},m=function(e){var t=p(e.components);return r.createElement(l.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},c=r.forwardRef((function(e,t){var a=e.components,n=e.mdxType,s=e.originalType,l=e.parentName,m=i(e,["components","mdxType","originalType","parentName"]),c=p(a),d=n,g=c["".concat(l,".").concat(d)]||c[d]||u[d]||s;return a?r.createElement(g,o(o({ref:t},m),{},{components:a})):r.createElement(g,o({ref:t},m))}));function d(e,t){var a=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var s=a.length,o=new Array(s);o[0]=c;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:n,o[1]=i;for(var p=2;p<s;p++)o[p]=a[p];return r.createElement.apply(null,o)}return r.createElement.apply(null,a)}c.displayName="MDXCreateElement"},99254:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>l,contentTitle:()=>o,default:()=>u,frontMatter:()=>s,metadata:()=>i,toc:()=>p});var r=a(87462),n=(a(67294),a(3905));const s={title:"Template Creator Permissions"},o=void 0,i={unversionedId:"how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates/creator-permissions",id:"version-2.5/how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates/creator-permissions",title:"Template Creator Permissions",description:"Administrators have the permission to create RKE templates, and only administrators can give that permission to other users.",source:"@site/versioned_docs/version-2.5/how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates/creator-permissions.md",sourceDirName:"how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates",slug:"/how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates/creator-permissions",permalink:"/v2.5/how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates/creator-permissions",draft:!1,editUrl:"https://github.com/rancher/rancher-docs/edit/main/versioned_docs/version-2.5/how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates/creator-permissions.md",tags:[],version:"2.5",lastUpdatedAt:1667002159,formattedLastUpdatedAt:"Oct 29, 2022",frontMatter:{title:"Template Creator Permissions"},sidebar:"tutorialSidebar",previous:{title:"RKE Templates",permalink:"/v2.5/pages-for-subheaders/about-rke1-templates"},next:{title:"Access and Sharing",permalink:"/v2.5/how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates/access-or-share-templates"}},l={},p=[{value:"Giving Users Permission to Create Templates",id:"giving-users-permission-to-create-templates",level:2},{value:"Allowing a User to Create Templates",id:"allowing-a-user-to-create-templates",level:3},{value:"Allowing New Users to Create Templates by Default",id:"allowing-new-users-to-create-templates-by-default",level:3},{value:"Revoking Permission to Create Templates",id:"revoking-permission-to-create-templates",level:3}],m={toc:p};function u(e){let{components:t,...a}=e;return(0,n.kt)("wrapper",(0,r.Z)({},m,a,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("p",null,"Administrators have the permission to create RKE templates, and only administrators can give that permission to other users."),(0,n.kt)("p",null,"For more information on administrator permissions, refer to the ",(0,n.kt)("a",{parentName:"p",href:"/v2.5/how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/manage-role-based-access-control-rbac/global-permissions"},"documentation on global permissions"),"."),(0,n.kt)("h2",{id:"giving-users-permission-to-create-templates"},"Giving Users Permission to Create Templates"),(0,n.kt)("p",null,"Templates can only be created by users who have the global permission ",(0,n.kt)("strong",{parentName:"p"},"Create RKE Templates.")),(0,n.kt)("p",null,"Administrators have the global permission to create templates, and only administrators can give that permission to other users."),(0,n.kt)("p",null,"For information on allowing users to modify existing templates, refer to ",(0,n.kt)("a",{parentName:"p",href:"/v2.5/how-to-guides/advanced-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates/access-or-share-templates"},"Sharing Templates.")),(0,n.kt)("p",null,"Administrators can give users permission to create RKE templates in two ways:"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"By editing the permissions of an ",(0,n.kt)("a",{parentName:"li",href:"#allowing-a-user-to-create-templates"},"individual user")),(0,n.kt)("li",{parentName:"ul"},"By changing the ",(0,n.kt)("a",{parentName:"li",href:"#allowing-new-users-to-create-templates-by-default"},"default permissions of new users"))),(0,n.kt)("h3",{id:"allowing-a-user-to-create-templates"},"Allowing a User to Create Templates"),(0,n.kt)("p",null,"An administrator can individually grant the role ",(0,n.kt)("strong",{parentName:"p"},"Create RKE Templates")," to any existing user by following these steps:"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},"From the global view, click the ",(0,n.kt)("strong",{parentName:"li"},"Users")," tab. Choose the user you want to edit and click the ",(0,n.kt)("strong",{parentName:"li"},"\u22ee"," > Edit.")),(0,n.kt)("li",{parentName:"ol"},"In the ",(0,n.kt)("strong",{parentName:"li"},"Global Permissions")," section, choose ",(0,n.kt)("strong",{parentName:"li"},"Custom")," and select the ",(0,n.kt)("strong",{parentName:"li"},"Create RKE Templates")," role along with any other roles the user should have. Click ",(0,n.kt)("strong",{parentName:"li"},"Save."))),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"Result:")," The user has permission to create RKE templates."),(0,n.kt)("h3",{id:"allowing-new-users-to-create-templates-by-default"},"Allowing New Users to Create Templates by Default"),(0,n.kt)("p",null,"Alternatively, the administrator can give all new users the default permission to create RKE templates by following the following steps. This will not affect the permissions of existing users."),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},"From the ",(0,n.kt)("strong",{parentName:"li"},"Global")," view, click ",(0,n.kt)("strong",{parentName:"li"},"Security > Roles.")),(0,n.kt)("li",{parentName:"ol"},"Under the ",(0,n.kt)("strong",{parentName:"li"},"Global")," roles tab, go to the role ",(0,n.kt)("strong",{parentName:"li"},"Create RKE Templates")," and click the ",(0,n.kt)("strong",{parentName:"li"},"\u22ee"," > Edit"),"."),(0,n.kt)("li",{parentName:"ol"},"Select the option ",(0,n.kt)("strong",{parentName:"li"},"Yes: Default role for new users")," and click ",(0,n.kt)("strong",{parentName:"li"},"Save."))),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"Result:")," Any new user created in this Rancher installation will be able to create RKE templates. Existing users will not get this permission."),(0,n.kt)("h3",{id:"revoking-permission-to-create-templates"},"Revoking Permission to Create Templates"),(0,n.kt)("p",null,"Administrators can remove a user's permission to create templates with the following steps:"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},"From the global view, click the ",(0,n.kt)("strong",{parentName:"li"},"Users")," tab. Choose the user you want to edit and click the ",(0,n.kt)("strong",{parentName:"li"},"\u22ee"," > Edit.")),(0,n.kt)("li",{parentName:"ol"},"In the ",(0,n.kt)("strong",{parentName:"li"},"Global Permissions")," section, un-check the box for ",(0,n.kt)("strong",{parentName:"li"},"Create RKE Templates"),". In this section, you can change the user back to a standard user, or give the user a different set of custom permissions."),(0,n.kt)("li",{parentName:"ol"},"Click ",(0,n.kt)("strong",{parentName:"li"},"Save."))),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"Result:")," The user cannot create RKE templates."))}u.isMDXComponent=!0}}]); |