create_user
¶
create_user(
email_address: Email,
type: UserType,
*,
config_overrides: Optional[finspacedataClientConfig] = None,
first_name: Optional[FirstName] = None,
last_name: Optional[LastName] = None,
api_access: Optional[ApiAccess] = None,
api_access_principal_arn: Optional[RoleArn] = None,
client_token: Optional[ClientToken] = None,
) -> CreateUserResponse
Creates a new user in FinSpace.
Parameters:
-
email_address(Email) –The email address of the user that you want to register. The email address serves as a uniquer identifier for each user and cannot be changed after it's created.
-
type(UserType) –The option to indicate the type of user. Use one of the following options to specify this parameter:
-
SUPER_USER– A user with permission to all the functionality and data in FinSpace. -
APP_USER– A user with specific permissions in FinSpace. The users are assigned permissions by adding them to a permission group.
-
-
first_name(Optional[FirstName], default:None) –The first name of the user that you want to register.
-
last_name(Optional[LastName], default:None) –The last name of the user that you want to register.
-
api_access(Optional[ApiAccess], default:None) –The option to indicate whether the user can use the
GetProgrammaticAccessCredentialsAPI to obtain credentials that can then be used to access other FinSpace Data API operations.-
ENABLED– The user has permissions to use the APIs. -
DISABLED– The user does not have permissions to use any APIs.
-
-
api_access_principal_arn(Optional[RoleArn], default:None) –The ARN identifier of an AWS user or role that is allowed to call the
GetProgrammaticAccessCredentialsAPI to obtain a credentials token for a specific FinSpace user. This must be an IAM role within your FinSpace account. -
client_token(Optional[ClientToken], default:None) –A token that ensures idempotency. This token expires in 10 minutes.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request conflicts with an existing resource.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
LimitExceededException–A limit has exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_finspace_data/_services/finspacedata.py
630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 | |