Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.

Create User Request and Add User to Group at same time

Hello!

We are creating a user provisioning feed and would like to create a new user in panopto and add them to a group based on the GUID at the same time.

We have successfully created the user using the below call but the user is not added to group as expected.


Can you provide an example of how the group membership piece of the below call should be formatted? BOLD BELOW

-- additional Q: does it matter if the GUID we add maps to internal versus external panopto group?


CreateUser request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:pan="http://schemas.datacontract.org/2004/07/Panopto.Server.Services.PublicAPI.V40" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">

  <soapenv:Header/>

  <soapenv:Body>

     <tem:CreateUser>

        <!--Optional:-->

        <tem:auth>

           <!--Optional:-->

           <pan:Password>***</pan:Password>

           <!--Optional:-->

           <pan:UserKey>***</pan:UserKey>

        </tem:auth>

        <!--Optional:-->

        <tem:user>

           <!--Optional:-->

           <pan:Email>[email protected]</pan:Email>

           <!--Optional:-->

           <pan:FirstName>Deannah</pan:FirstName>

           <!--Optional:-->

           <pan:GroupMemberships>

              <!--Zero or more repetitions:-->

              <arr:guid>e0d58fc1-7d0c-4494-a9cd-acbc013cd3e4 </arr:guid>

           </pan:GroupMemberships>

           <!--Optional:-->

           <pan:LastName>Blemur</pan:LastName>

           <!--Optional:-->

           <pan:UserKey>unified\1303783</pan:UserKey>

        </tem:user>

     </tem:CreateUser>

  </soapenv:Body>

</soapenv:Envelope>

Answers

  • Note that when we run the above call we don't get any error, looks to have run fine

  • Hiroshi OhnoHiroshi Ohno Panopto Employee

    Janelle,

    Thank you for posting this question.

    I was able to get the same behavior, and I confirmed API's internal behavior where GroupMemberships field is not referred by the CreateUser API. GroupMemberhips field is intended for the read operation like GetUser API, but not for the create API.

    Please make a second call to AddMembersToInternalGroup or AddMembersToExternalGroup after CreateUser.

    I apologize the lack of this detail in our API document.

  • Thank you Hiroshi,

    Can you also confirm that creating a personal folder would be similar? Is there a parameter we can add to Create a Group so we can do that in the same call, or separate calls?

  • Hiroshi OhnoHiroshi Ohno Panopto Employee

    Janelle,

    Please use GetPersonalFolderForUser method with allowCreation = true to create a personal folder.

    Thanks.

Sign In or Register to comment.