update_user
async
¶
update_user(
user_id: UserId,
*,
config_overrides: Optional[AsyncfinspacedataClientConfig] = None,
type: Optional[UserType] = 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,
) -> UpdateUserResponse
Modifies the details of the specified user. You cannot update the userId for a user.
Parameters:
-
user_id(UserId) –The unique identifier for the user that you want to update.
-
type(Optional[UserType], default:None) –The option to indicate the type of user.
-
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.
-
last_name(Optional[LastName], default:None) –The last name of the user.
-
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.
-
ResourceNotFoundException–One or more resources can't be found.
-
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/async_finspacedata.py
2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 | |