tencent cloud

Serverless Cloud Function

Release Notes and Announcements
Release Notes
Announcements
User Guide
Product Introduction
Overview
Related Concepts
How It Works
Strengths
Scenarios
Related Products
Purchase Guide
Billing Overview
Billing Mode
Billable Items and Billing Modes
Function Computing Power Support
Free Tier
SCF Pricing
Billing Example
Payment Overdue
Getting Started
Creating Event Function in Console
User Guide
Quota Management
Managing Functions
Web Function Management
Log Management
Concurrence Management
Trigger Management
Function URL
A Custom Domain Name
Version Management
Alias Management
Permission Management
Running Instance Management
Plugin Management
Managing Monitors and Alarms
Network Configuration
Layer Management
Execution Configuration
Extended Storage Management
DNS Caching Configuration
Resource Managed Mode Management
Near-Offline Resource Hosting Model
Workflow
Triggers
Trigger Overview
Trigger Event Message Structure Summary
API Gateway Trigger
COS Trigger
CLS Trigger
Timer Trigger
CKafka Trigger
Apache Kafka Trigger
MQTT Trigger
Trigger Configuration Description
MPS Trigger
CLB Trigger Description
TencentCloud API Trigger
Development Guide
Basic Concepts
Testing a Function
Environment Variables
Dependency Installation
Using Container Image
Error Types and Retry Policies
Dead Letter Queue
Connecting SCF to Database
Automated Deployment
Cloud Function Status Code
Common Errors and Solutions
Developer Tools
Serverless Web IDE
Calling SDK Across Functions
Third-Party Tools
Code Development
Python
Node.js
Golang
PHP
Java
Custom Runtime
Deploying Image as Function
Web Framework Development
Deploying Framework on Command Line
Quickly Deploying Egg Framework
Quickly Deploying Express Framework
Quickly Deploying Flask Framework
Quickly Deploying Koa Framework
Quickly Deploying Laravel Framework
Quickly Deploying Nest.js Framework
Quickly Deploying Next.js Framework
Quickly Deploying Nuxt.js Framework
Quickly Deploying Django Framework
Use Cases
Overview
Solutions with Tencent Cloud Services
Business Development
TRTC Practices
COS Practices
CKafka Practice
CLS
CLB Practice
MPS
CDN
CDWPG
VOD
SMS
ES
Scheduled Task
Video Processing
Success Stories
Tencent Online Education
Online Video Industry
Tencent Online Education
Best Practice of Tencent IEG Going Global
API Documentation
History
Introduction
API Category
Making API Requests
Other APIs
Namespace APIs
Layer Management APIs
Async Event Management APIs
Trigger APIs
Function APIs
Function and Layer Status Description
Data Types
Error Codes
SDK Documentation
FAQs
General
Web Function
Billing FAQs
Network FAQs
Log FAQs
SCF utility class
Event Handling FAQs
API Gateway Trigger FAQs
Related Agreement
Service Level Agreement
Contact Us
Glossary
DokumentasiServerless Cloud FunctionUser GuidePermission ManagementCreating a Sub-user and Granting It Permissions to Operate Certain Functions

Creating a Sub-user and Granting It Permissions to Operate Certain Functions

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2024-12-02 20:11:42

Step 1. Create a sub-user by using the root account

1. Log in to the CAM Console and select Users > User List on the left sidebar.
2. On the User List page, select Create User > Custom Creation to enter the sub-user creation page.
3. Select a user type and click Access resources and receive messages.
4. Enter the user information. You can create sub-users and set access type and console password in batches. Please configure based on your actual needs.
5. Set the permissions (required). Make appropriate settings according to different business scenarios and click Next to save the settings. You can also change the relevant permission settings later. There are three ways to set permissions:
Add the sub-user to an existing or new user group.
Copy the permissions of an existing user.
Authorize in the list of policies.
6. After the creation is completed, the console will display the username, password, TencentCloud API key and other information of the sub-user. Click Complete to exit the page.
Note:
For more information, please see Creating Sub-user.

Step 2. Create a custom policy

1. Log in to the CAM Console and select Policy on the left sidebar.
2. On the policy management page, select Create Custom Policy > Create by Policy Builder to enter the creation page.
3. Select services and operations. Set the corresponding items as follows and click **Add Statement> Next to enter the policy editing steps:
Effect: allowed
Service: SCF
Action: all
Resource: *
Condition (optional): empty
4. Edit the policy name and remarks (you are recommended to use an easy-to-understand name) and modify the content of the policy by replacing it with the code in the sample policy in Permission Management Overview.
Note:
The resource description in resource needs to be replaced with the ID of the root account and the names of functions under it. The region needs to be the same as that of the functions.

Step 2. Associate a policy with a user/user group

1. On the Policy Management page, click Associate User/User Group on the right of the created policy to pop up the prompt box for association.
2. Select the user to be associated with and click OK to complete the association. You can also switch between users and user groups for selection.

Completion

After the settings above are made, you can log in to the sub-account to view the permissions. Click Overview on the left sidebar to enter the overview page and view the sub-user login address. After the policy takes effect, the current sub-account can see all the function names but can only operate on and view the functions listed in resource.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan