/AWS1/IF_DZN=>GETUSERPROFILE()¶
About GetUserProfile¶
Gets a user profile in Amazon DataZone.
Method Signature¶
METHODS /AWS1/IF_DZN~GETUSERPROFILE
IMPORTING
!IV_DOMAINIDENTIFIER TYPE /AWS1/DZNDOMAINID OPTIONAL
!IV_USERIDENTIFIER TYPE /AWS1/DZNUSERIDENTIFIER OPTIONAL
!IV_TYPE TYPE /AWS1/DZNUSERPROFILETYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dzngetuserpfloutput
RAISING
/AWS1/CX_DZNACCESSDENIEDEX
/AWS1/CX_DZNTHROTTLINGEX
/AWS1/CX_DZNUNAUTHORIZEDEX
/AWS1/CX_DZNINTERNALSERVEREX
/AWS1/CX_DZNRESOURCENOTFOUNDEX
/AWS1/CX_DZNVALIDATIONEX
/AWS1/CX_DZNCLIENTEXC
/AWS1/CX_DZNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domainidentifier TYPE /AWS1/DZNDOMAINID /AWS1/DZNDOMAINID¶
the ID of the Amazon DataZone domain the data portal of which you want to get.
iv_useridentifier TYPE /AWS1/DZNUSERIDENTIFIER /AWS1/DZNUSERIDENTIFIER¶
The identifier of the user for which you want to get the user profile.
Optional arguments:¶
iv_type TYPE /AWS1/DZNUSERPROFILETYPE /AWS1/DZNUSERPROFILETYPE¶
The type of the user profile.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dzngetuserpfloutput /AWS1/CL_DZNGETUSERPFLOUTPUT¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getuserprofile(
iv_domainidentifier = |string|
iv_type = |string|
iv_useridentifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_domainid = lo_result->get_domainid( ).
lv_userprofileid = lo_result->get_id( ).
lv_userprofiletype = lo_result->get_type( ).
lv_userprofilestatus = lo_result->get_status( ).
lo_userprofiledetails = lo_result->get_details( ).
IF lo_userprofiledetails IS NOT INITIAL.
lo_iamuserprofiledetails = lo_userprofiledetails->get_iam( ).
IF lo_iamuserprofiledetails IS NOT INITIAL.
lv_string = lo_iamuserprofiledetails->get_arn( ).
lv_string = lo_iamuserprofiledetails->get_principalid( ).
ENDIF.
lo_ssouserprofiledetails = lo_userprofiledetails->get_sso( ).
IF lo_ssouserprofiledetails IS NOT INITIAL.
lv_userprofilename = lo_ssouserprofiledetails->get_username( ).
lv_firstname = lo_ssouserprofiledetails->get_firstname( ).
lv_lastname = lo_ssouserprofiledetails->get_lastname( ).
ENDIF.
ENDIF.
ENDIF.