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

Sub-users and Authorization

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2024-12-02 20:11:42
Note:
The root account needs to check on the Role page whether the SCF_QcsRole policy is associated, and if not, grant the permissions as instructed in Service Authorization in Role and Authorization; otherwise, sub-users will not be able to use the SCF console and call other Tencent Cloud resources through SCF.

Creating a Sub-user and Granting it All SCF Permissions

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 to enter the Create Sub-User page.
3. In the User Type step, after selecting Access Resources and Receive Messages, click Next to enter the user information.
4. Enter and confirm the information as prompted and click Complete.
Note:
For more information, see Creating Sub-User.

Step 2. Create a custom policy

1. Log in to the CAM console. Click Create Custom Policy in the top-left corner.
2. In the pop-up window, click Create by Policy Generator to go to the Edit Policy page.
3. Select the service in the Visual Policy Generator, enter the following information, and edit an authorization statement.
Effect: Allow
Service: SCF
Action: All
Resource Description: *
**Condition (optional)**: Empty
4. After editing the policy authorization statement, click Next to enter the Associate User/User Group/Role page.
5. On the Associate User/User Group/Role page, add the policy name and description, and you can associate users, user groups, or roles for quick authorization at the same time.
6. Click Complete to complete the custom policy creation.

Step 3. Add CAM read-only permissions for the sub-user

1. Log in to the CAM console and enter the User List page.
2. Locate the sub-user you want to grant permission to.
3. Click Authorize in the Operation column on the right.
4. In the Associate Policy pop-up window, select QcloudCamReadOnlyAccess.
5. Click OK.

Completion

After the settings above are configured, you can log in to the sub-account to view the permissions. Log in to the CAM console and select Overview on the left sidebar to access the overview page and view the sub-user login address.

Creating a Sub-user and Granting it Certain SCF Permissions

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 to enter the Create Sub-User page.
3. In the User Type step, after selecting Access Resources and Receive Messages, click Next to enter the user information.
4. Enter and confirm the information as prompted and click Complete.
Note:
For more information, see Creating Sub-User.

Step 2. Create a custom policy

1. Log in to the CAM console. Click Create Custom Policy in the top-left corner.
2. In the pop-up window, click Create by Policy Generator to go to the Edit Policy page.
3. Copy the code of the sample policy in SCF Policy Syntax and edit the policy content in Edit Policy > JSON.
Note:
The resource description in resource needs to be replaced with the ID of the root account and the names of the functions under it. The region needs to be the same as that of the functions.
4. Click Next to enter the Associate User/User Group/Role page.
5. On the Associate User/User Group/Role page, add the policy name and description, and you can associate users, user groups, or roles for quick authorization at the same time.
6. Click Complete to complete the custom policy creation.

Step 3. Add CAM read-only permissions for the sub-user

1. Log in to the CAM console and enter the User List page.
2. Locate the sub-user you want to grant permission to.
3. Click Authorize in the Operation column on the right.
4. In the Associate Policy pop-up window, select QcloudCamReadOnlyAccess.
5. Click OK.

Completion

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


Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan