Skip to content

GroupXsiPolicyProfileGetAssignedUserListRequest

Bases: OCIRequest

Get a list of user within a group that have a given user Xsi policy profile assigned. The response is either a GroupXsiPolicyProfileGetAssignedUserListResponse or an ErrorResponse.

Attributes:

service_provider_id (str):

group_id (str):

xsi_policy_profile (XsiPolicyProfileKey):

response_size_limit (Optional[int]):

search_criteria_user_id (Optional[List[SearchCriteriaUserId]]):

search_criteria_user_last_name (Optional[List[SearchCriteriaUserLastName]]):

search_criteria_user_first_name (Optional[List[SearchCriteriaUserFirstName]]):

search_criteria_dn (Optional[List[SearchCriteriaDn]]):

search_criteria_extension (Optional[List[SearchCriteriaExtension]]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupXsiPolicyProfileGetAssignedUserListRequest(OCIRequest):
    """Get a list of user within a group that have a given
        user Xsi policy profile assigned.
        The response is either a GroupXsiPolicyProfileGetAssignedUserListResponse
        or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        group_id (str):

        xsi_policy_profile (XsiPolicyProfileKey):

        response_size_limit (Optional[int]):

        search_criteria_user_id (Optional[List[SearchCriteriaUserId]]):

        search_criteria_user_last_name (Optional[List[SearchCriteriaUserLastName]]):

        search_criteria_user_first_name (Optional[List[SearchCriteriaUserFirstName]]):

        search_criteria_dn (Optional[List[SearchCriteriaDn]]):

        search_criteria_extension (Optional[List[SearchCriteriaExtension]]):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

    group_id: str = field(metadata={"alias": "groupId"})

    xsi_policy_profile: XsiPolicyProfileKey = field(
        metadata={"alias": "xsiPolicyProfile"}
    )

    response_size_limit: Optional[int] = field(
        default=None, metadata={"alias": "responseSizeLimit"}
    )

    search_criteria_user_id: Optional[List[SearchCriteriaUserId]] = field(
        default=None, metadata={"alias": "searchCriteriaUserId"}
    )

    search_criteria_user_last_name: Optional[List[SearchCriteriaUserLastName]] = field(
        default=None, metadata={"alias": "searchCriteriaUserLastName"}
    )

    search_criteria_user_first_name: Optional[List[SearchCriteriaUserFirstName]] = (
        field(default=None, metadata={"alias": "searchCriteriaUserFirstName"})
    )

    search_criteria_dn: Optional[List[SearchCriteriaDn]] = field(
        default=None, metadata={"alias": "searchCriteriaDn"}
    )

    search_criteria_extension: Optional[List[SearchCriteriaExtension]] = field(
        default=None, metadata={"alias": "searchCriteriaExtension"}
    )

Responses

Bases: OCIDataResponse

Response to GroupXsiPolicyProfileGetAssignedUserListRequest. Contains a table of user that have the user Xsi Policy Profile assigned. The column headings are: "User Id", "Last Name", "First Name", "Phone Number" "Department" and "Extension".

Attributes:

user_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupXsiPolicyProfileGetAssignedUserListResponse(OCIDataResponse):
    """Response to GroupXsiPolicyProfileGetAssignedUserListRequest.
        Contains a table of user that have the user Xsi Policy Profile
        assigned. The column headings are: \"User Id\", \"Last Name\", \"First Name\",
        \"Phone Number\" \"Department\" and \"Extension\".

    Attributes:

        user_table (OCITable):

    """

    user_table: OCITable = field(metadata={"alias": "userTable"})

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip.client import Client
from mercury_ocip.commands import GroupXsiPolicyProfileGetAssignedUserListRequest

client = Client()

command = GroupXsiPolicyProfileGetAssignedUserListRequest(
    service_provider_id=...,
    group_id=...,
    xsi_policy_profile=...,
    response_size_limit=...,
    search_criteria_user_id=...,
    search_criteria_user_last_name=...,
    search_criteria_user_first_name=...,
    search_criteria_dn=...,
    search_criteria_extension=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("GroupXsiPolicyProfileGetAssignedUserListRequest",
    service_provider_id=...,
    group_id=...,
    xsi_policy_profile=...,
    response_size_limit=...,
    search_criteria_user_id=...,
    search_criteria_user_last_name=...,
    search_criteria_user_first_name=...,
    search_criteria_dn=...,
    search_criteria_extension=...,
)

print(response)