aws-samples / aws-samples/resource-autotagger

Code can't handle @ in user_id

Open
#2 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11
Forks
1
PR merge metrics
No merged PRs in 30d

Description

In my organization, we use the work emails to configure the user_id property.
As of now, your code can't handle @ in the user_id as it gets ValidationException.
Here is my workaround:
var user_id_components = user_id_arn.split("/");
var user_id = user_id_components[user_id_components.length-1].split('@')[0];
returned_event_fields["user_id"] = user_id;

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.