Show TOC

Fetching the List of Users for RolesLocate this document in the navigation structure

Note

Role to user resolution is an additional capability provided and you can use it if required.

The role to user resolution can either be on the SAP backend system or on the SAP Gateway Hub system. The method GET_USERS_FROM_ROLES of the API /IWBEP/CL_MGW_PUSH_UTIL on the SAP backend system returns the list of users for a role or a list of roles.

  • In case the role user mapping is on the SAP Gateway Hub system, implement the BAdI /IWBEP/BD_MGW_PUSH_ROL_MAP_PRV and use the class /IWBEP/CL_MGW_PUSH_ROL_MAP_RMT as the implementation.

    The BAdI is executed by the GET_USERS_FROM_ROLE method of the utility class /IWBEP/CL_MGW_PUSH_UTIL for fetching the list of users for a role or list of roles and the appropriate system ID and system client of the SAP Gateway Hub system must be provided.

  • In case the role user mapping is on the SAP backend system, then the optional parameters IV_SOURCE_SYSTEM_ID and IV_SOURCE_CLIENT can be ignored.

    The list of roles should be passed as input in the table IT_ROLE_TAB.

Utility Class for Push Notifications

The interface /IWBEP/CL_MGW_PUSH_UTIL on the SAP backend system returns the list of users for a role or the list of roles.

Method GET_USERS_FROM_ROLES gets the list of users corresponding to a role.

Parameter

Description

IV_SOURCE_SYSTEM_ID

The system ID from which, role to user mapping is fetched

IV_SOURCE_CLIENT

The system client from which, role to user mapping is fetched

IT_ROLE_TAB

The list of roles for which, the assigned users are fetched

ET_ROLE_USER_TAB

The list of users for the roles passed in ET_ROLE_USER_TAB