/AWS1/IF_DSD=>LISTGROUPSFORMEMBER()¶
About ListGroupsForMember¶
Returns group information for the specified member.
This operation supports pagination with the use of the NextToken request and
response parameters. If more results are available, the
ListGroupsForMember.NextToken member contains a token that you pass in the next
call to ListGroupsForMember. This retrieves the next set of items.
You can also specify a maximum number of return results with the MaxResults
parameter.
Method Signature¶
METHODS /AWS1/IF_DSD~LISTGROUPSFORMEMBER
IMPORTING
!IV_DIRECTORYID TYPE /AWS1/DSDDIRECTORYID OPTIONAL
!IV_REALM TYPE /AWS1/DSDREALM OPTIONAL
!IV_MEMBERREALM TYPE /AWS1/DSDREALM OPTIONAL
!IV_SAMACCOUNTNAME TYPE /AWS1/DSDMEMBERNAME OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/DSDNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/DSDMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dsdlistgrsformemberrs
RAISING
/AWS1/CX_DSDACCESSDENIEDEX
/AWS1/CX_DSDDIRECTORYUNAVAILEX
/AWS1/CX_DSDINTERNALSERVEREX
/AWS1/CX_DSDRESOURCENOTFOUNDEX
/AWS1/CX_DSDTHROTTLINGEX
/AWS1/CX_DSDVALIDATIONEX
/AWS1/CX_DSDCLIENTEXC
/AWS1/CX_DSDSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_directoryid TYPE /AWS1/DSDDIRECTORYID /AWS1/DSDDIRECTORYID¶
The identifier (ID) of the directory that's associated with the member.
iv_samaccountname TYPE /AWS1/DSDMEMBERNAME /AWS1/DSDMEMBERNAME¶
The
SAMAccountNameof the user, group, or computer that's a member of the group.
Optional arguments:¶
iv_realm TYPE /AWS1/DSDREALM /AWS1/DSDREALM¶
The domain name that's associated with the group.
This parameter is optional, so you can return groups outside of your Managed Microsoft AD domain. When no value is defined, only your Managed Microsoft AD groups are returned.
This value is case insensitive and defaults to your Managed Microsoft AD domain.
iv_memberrealm TYPE /AWS1/DSDREALM /AWS1/DSDREALM¶
The domain name that's associated with the group member.
This parameter is optional, so you can limit your results to the group members in a specific domain.
This parameter is case insensitive and defaults to
Realm
iv_nexttoken TYPE /AWS1/DSDNEXTTOKEN /AWS1/DSDNEXTTOKEN¶
An encoded paging token for paginated calls that can be passed back to retrieve the next page.
iv_maxresults TYPE /AWS1/DSDMAXRESULTS /AWS1/DSDMAXRESULTS¶
The maximum number of results to be returned per request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dsdlistgrsformemberrs /AWS1/CL_DSDLISTGRSFORMEMBERRS¶
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->listgroupsformember(
iv_directoryid = |string|
iv_maxresults = 123
iv_memberrealm = |string|
iv_nexttoken = |string|
iv_realm = |string|
iv_samaccountname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_directoryid = lo_result->get_directoryid( ).
lv_realm = lo_result->get_realm( ).
lv_realm = lo_result->get_memberrealm( ).
LOOP AT lo_result->get_groups( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_sid = lo_row_1->get_sid( ).
lv_groupname = lo_row_1->get_samaccountname( ).
lv_grouptype = lo_row_1->get_grouptype( ).
lv_groupscope = lo_row_1->get_groupscope( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.
To list groups for a member¶
The following command
DATA(lo_result) = lo_client->listgroupsformember(
iv_directoryid = |d-12233abcde|
iv_memberrealm = |example.local|
iv_realm = |examplecorp.com|
iv_samaccountname = |twhitlock|
).