Feature Permission Management
Alibaba Cloud IDaaS EIAM lets administrators manage feature permissions for M2M applications and implement fine-grained access control when machines and users access resource services. This topic describes the full lifecycle of permission management, including how to add and delete permissions and how to assign and revoke permissions for each grant type (machine, user, and mixed mode). It is intended for system administrators or technical personnel who have created M2M applications and need to manage access permissions.
Prerequisites
You have created an M2M application. If not, see Application onboarding for configuration instructions.
Add a permission
Add a permission to an M2M server application.
Log on to the IDaaS console.
In the navigation bar, click EIAM and locate the target EIAM instance.
In the Actions column, click Console.
In the navigation bar, choose .
Locate the target application and, in the Caller Permission Management column, click Permission Management.
Click Create Scope. If you are configuring permissions for this application for the first time, configure the following settings:
ResourceServer Identifier: When a client application obtains an access token from IDaaS, include this identifier in the
scopefield, in the formataudience identifier|permission identifier.After you complete the configuration, click Create Scope.
On the Create Scope page, configure the following parameters:
Scope Type:
Machines Scope: Allows a machine to obtain this permission.
Permissions on Users: Allows a user to obtain this permission. Only OIDC with M2M Application supports this option.
User & Machine Permissions: Allows both a machine and a user to obtain this permission. Only OIDC with M2M Application supports this option.
Scope Name: Used only for display in the console. It is not involved in the authentication process of the client application.
Scope Value: When a client application obtains an access token, include this identifier in the
scopefield, in the formataudience identifier|permission identifier.Authorization Method: Configurable only when Scope Type is set to Permissions on Users. This parameter includes the following options:
Auto-Authorize: Automatically grants this permission to all users. No authorization action is required.
Manually: Requires you to grant this permission to specific users. For the authorization configuration, see Assign permissions.
NoteScope Type set to User & Machine Permissions defaults to Manually.
After you complete the permission configuration, you can view the added permissions on the Permission Management tab.
Delete a permission
Delete a permission that has been added to an M2M server application.
After you delete a permission, it is automatically revoked from all applications, Account, Group, and Organization that were granted this permission.
Log on to the IDaaS console.
In the navigation bar, click EIAM and locate the target EIAM instance.
In the Actions column, click Console.
In the navigation bar, choose .
Locate the target application and, in the Caller Permission Management column, click Permission Management.
Locate the target permission and, in the Actions column, click Delete. The permission is deleted.
Assign permissions
Assign M2M server application permissions to an M2M client application.
Applications without grants
For an M2M client application that has not been granted permissions, perform the following steps to assign M2M server application permissions.
Log on to the IDaaS console.
In the navigation bar, click EIAM and locate the target EIAM instance.
In the Actions column, click Console.
In the navigation bar, choose .
Locate the target M2M client application and, in the Caller Permission Management column, click Authorization Management.
Click Authorization Management. Select a tab based on the grant type.
Machine authorization
Click the Authorize tab.
Click Authorize.
In Authorized Application, select the client application that you want to authorize.
In Select Permissions, select the permissions to assign.
User authorization
Click the User Authorization tab.
Click Authorize.
In Principal, select the Account, Group, or Organization that you want to authorize. You can select multiple items. For more information about Account, Group, and Organization configuration, see Create accounts or organizations and Manage groups.
In Select Permissions, select the user permissions to assign.
Applications with grants
For an M2M client application that has already been granted permissions, perform the following steps to assign M2M server application permissions.
Log on to the IDaaS console.
In the navigation bar, click EIAM and locate the target EIAM instance.
In the Actions column, click Console.
In the navigation bar, choose .
Locate the target M2M client application and, in the Caller Permission Management column, click Authorization Management.
Click Authorization Management. Select a tab based on the grant type.
Machine authorization
Click the Authorize tab.
Locate the target application and, in the Actions column, click Authorize.
Select the permissions to assign.
User authorization
Click the User Authorization tab.
Locate the target Account/Group/Organization and, in the Actions column, click Authorize.
Select the permissions to assign.
Revoke permissions
Revoke the M2M server application permissions that were assigned to an M2M client application.
Log on to the IDaaS console.
In the navigation bar, click EIAM and locate the target EIAM instance.
In the Actions column, click Console.
In the navigation bar, choose .
Locate the target M2M client application and, in the Caller Permission Management column, click Authorization Management.
Click Authorization Management. Select a tab based on the grant type.
Machine authorization
Click the Authorize tab.
Locate the target M2M server application and, in the Actions column, click De-Authorize.
In Select Permissions, select the M2M server application permissions to revoke.
User authorization
Click the User Authorization tab.
Based on the grantee type, under Scope Type, click Account, Group, or Organization.
Locate the target grantee and, in the Actions column, click De-Authorize.
In Select Permissions, select the M2M server application permissions to revoke.
References
M2M application configuration: see Application onboarding.
Account and Organization configuration: see Create accounts or organizations.
Group configuration: see Manage groups.