Skip to content

Allow user switching between different groups if the user is in multiple groups #2046

Open
@lwang-79

Description

@lwang-79

Environment information

NA

Describe the feature

Problem:
If a user is in multiple groups, currently there is not a way to specify the group during login so that the user can assume different roles.

Possible solution:
According to the Cognito documentation, the solution is to specify the CustomRoleARN parameter in the GetCredentialsForIdentity API call. Therefore the role ARN should be exported to the amplify_outputs.json file, and then the frontend amplify library should use this information to call the API.

Use case

Allow users switching between different groups.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssue pertaining to Amplify Authfeature-requestNew feature or requestneeds-product-inputNeeds non-technical requirements or direction to proceedstorageRelated to the storage experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions