Hello Antonin,
In this case you have a few options:
OPTION 1. You can directly create SAML users via API (not possible via UI). Send a POST request to your server https://example.com/aspera/faspex/api/v5/accounts with the following request body in JSON format:
{
"allowed_ip_addresses_for_download": [],
"allowed_ip_addresses_for_login": [],
"allowed_ip_addresses_for_upload": [],
"downloads_allowed": true,
"enforce_password_history": false,
"override_server_sender_quota": false,
"override_server_delete_after_download": false,
"override_transfer_parameters": false,
"received_cc_notification_users": [],
"self_destructs": false,
"sender_quota_limit_mb": "4000",
"uploads_allowed": true,
"user_profile_data_attributes": [],
"name": "exampleuser@example.com",
"welcome_email": true,
"role": "user",
"first_name": "Alex",
"last_name": "Test",
"email": "exampleuser@example.com",
"type": "saml_user",
"saml_configuration_id": 1
}
Notice how the property type is set to "saml_user", also make sure to include the saml_configuration_id property which should match the SAML configuration id associated to this user. Once the user is created you can add them to any Shared Inbox or Workgroup, and once the user logs in via SAML the user will retain those memberships and no duplicate accounts will be created.
OPTION 2. Create specific SAML groups that belong to specific Shared Inboxes/Workgroups.
For example, create a SAML group called "Faspex Shared Inbox 1"
Then associate for example "Shared Inbox 1" to SAML group "Faspex Shared Inbox 1" (You can do this under Shared Inboxes > Click on your Shared Inbox > Members > SAML groups)
Now anytime a user belonging to SAML group "Faspex Shared Inbox 1" will automatically become a member of "Shared Inbox 1" during login. The same applies for Workgroups.