How to get calendar entries (appointments) of all GW users

Hello,

I'm new to the Groupwise SOAP. I want to get all calendar entries (appointments) of all GW users.

I'm using SoapUI and requested a login:


<soapenv:Envelope xmlns:soapenv="">schemas.xmlsoap.org/.../" xmlns:typ="">schemas.novell.com/.../types" xmlns:met="">schemas.novell.com/.../methods">
<soapenv:Header>
<typ:gwTrace>?</typ:gwTrace>
</soapenv:Header>
<soapenv:Body>
<met:loginRequest>
<met:auth type="types:PlainText">
<typ:username>gwUserName</typ:username><!--user name is here replaced with the string gwUserName-->
<typ:password>gwPassword</typ:password><!--password is here replaced with the string gwPassword-->
</met:auth>
<met:language>en</met:language>
</met:loginRequest>
</soapenv:Body>
</soapenv:Envelope>


Response includes the session idetifier:

...
<gwm:session>IgTGkCxCChpUhhXN</gwm:session>
...


Using the given session ID I tried to get all calendar items, using the following request:

<soapenv:Envelope xmlns:soapenv="">schemas.xmlsoap.org/.../" xmlns:typ="">schemas.novell.com/.../types" xmlns:met="">schemas.novell.com/.../methods">
<soapenv:Header>
<typ:gwTrace>?</typ:gwTrace>
<typ:session>IgTGkCxCChpUhhXN</typ:session>
</soapenv:Header>
<soapenv:Body>
<met:getItemsRequest>
<met:filter>
<typ:element>
<typ:op>calendar</typ:op>
</typ:element>
</met:filter>
</met:getItemsRequest>
</soapenv:Body>
</soapenv:Envelope>


In this way I'm getting only my own calendar entries (appointment items). Calendar items of other users are not responsed.

Regards
  • The access to the post office data is user based.
    You have to login as a particular user to get that user's data.
    We have the concept of a trusted application.
    You register a trusted application.
    Once you have a trusted application, you have a trusted application
    name and key.
    You pass the trusted application name and key to get access for
    a user without having to pass in the user's password.

    You call getUserListRequest to get the list of users on the post office.
    You pass in the trusted app name and key as parameters.
    You get back the list of users.
    You would then iterate through the users, and do a trusted app login for
    each user.
    You pass a TrunstedApplication element as the auth element in the
    loginRequest.
    You pass in the userid of the user in the username element.
    You pass in the trusted application name and key in the name and key
    elements.

    The SOAP documentation is outdated.
    https://www.novell.com/developer/ndk/groupwise/groupwise_web_service_(soap).
    html

    You can create the trusted application in the GroupWise Administration
    console.
    https://www.novell.com/documentation/groupwise18/gw18_guide_admin/data/adm_s
    ys_tools_trusted_applications.html


    Preston


    >>>


    > Hello,
    >
    > I'm new to the Groupwise SOAP. I want to get all calendar entries
    > (appointments) of all GW users.
    >
    > I'm using SoapUI and requested a login:
    >
    >
    > Code:
    > ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
    >
    > <soapenv:Envelope
    > xmlns:soapenv="">schemas.xmlsoap.org/.../"
    > xmlns:typ="
    ">schemas.novell.com/.../types"
    > xmlns:met="">schemas.novell.com/.../methods">
    > <soapenv:Header>
    > <typ:gwTrace>?</typ:gwTrace>
    > </soapenv:Header>
    > <soapenv:Body>
    > <met:loginRequest>
    > <met:auth type="types:PlainText">
    > <typ:username>gwUserName</typ:username><!‑‑user name is here

    replaced with
    > the string gwUserName‑‑>
    > <typ:password>gwPassword</typ:password><!‑‑password is here replaced

    with the
    > string gwPassword‑‑>
    > </met:auth>
    > <met:language>en</met:language>
    > </met:loginRequest>
    > </soapenv:Body>
    > </soapenv:Envelope>
    >
    > ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
    >
    >
    > Response includes the session idetifier:
    >
    > Code:
    > ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
    >
    > ...
    > <gwm:session>IgTGkCxCChpUhhXN</gwm:session>
    > ...
    >
    > ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
    >
    >
    > Using the given session ID I tried to get all calendar items, using the
    > following request:
    >
    > Code:
    > ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
    >
    > <soapenv:Envelope
    > xmlns:soapenv="">schemas.xmlsoap.org/.../"
    > xmlns:typ="
    ">schemas.novell.com/.../types"
    > xmlns:met="">schemas.novell.com/.../methods">
    > <soapenv:Header>
    > <typ:gwTrace>?</typ:gwTrace>
    > <typ:session>IgTGkCxCChpUhhXN</typ:session>
    > </soapenv:Header>
    > <soapenv:Body>
    > <met:getItemsRequest>
    > <met:filter>
    > <typ:element>
    > <typ:op>calendar</typ:op>
    > </typ:element>
    > </met:filter>
    > </met:getItemsRequest>
    > </soapenv:Body>
    > </soapenv:Envelope>
    >
    > ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
    >
    >
    > In this way I'm getting only my own calendar entries (appointment
    > items). Calendar items of other users are not responsed.
    >
    > Regards


  • How do you filter for

    <gwt:recipType>Resource</gwt:recipType>

    using getUserListRequest?
  • You will have to filter the list on your side.
    I believe you could get the list using the GW Admin Rest API.
    (But I haven't looked into it or used it.)

    Preston


    >>>


    > How do you filter for
    >
    > <gwt:recipType>Resource</gwt:recipType>
    >
    > using getUserListRequest?