Notification-off Favorite-off

Get list of HannonHill groups via the soap web services interface

9 comments

  • 0 points Thumb-up Thumb-down Favorite-off by sreuland about 1 month ago Permalink

    I am looking for a way to get a listing of all groups(EntityTypeString=‘GROUP’)  that have been defined in HannonHill. I am using the soap/wsdl interface, Is there a search operation available for that listing? The current search operation paramater (SearchInformation)only provides for searching assets(files, folders, templates, etc).  

  • 0 points Thumb-up Thumb-down Favorite-off by sreuland about 1 month ago Permalink

    anyone out there have experience/advice on this..

    • 0 points Thumb-up Thumb-down Favorite-off by bradley.wagner about 1 month ago Permalink

      I don’t believe this is currently a SOAP request that will list all available Users or Groups in the system as they do not exist in one Container the way the rest of the assets do. This would be a new idea for our Idea Exchange

  • 0 points Thumb-up Thumb-down Favorite-off by sreuland about 1 month ago Permalink

    Thank you very much, I will post in the ideas section shortly. I’m trying to confirm if the updates I will need are available from the soap interface as well. It looks like I can create a User, but does the soap api support a method for add/remove of users from groups? Thanks again for your feedback!

  • 0 points Thumb-up Thumb-down Favorite-off by sreuland about 1 month ago Permalink

    I’m trying out soap commands towards this, but need a little guidance at this point..When I look up an existing user, the ‘groups’ element has a semicolon delimited string of group memberships. I’m trying to use the ‘edit’ operation to then add/remove groups on an existing user by modifying the ‘groups’ element. I’m getting errors related to ’user’ element passed to the ‘edit’ operation though. Any advice on which elements need to be present on a ’user’ element when only the ‘groups’ element needs to be updated? If this is not correct form, is there another way to go at this via soap? 

    • 0 points Thumb-up Thumb-down Favorite-off by bradley.wagner about 1 month ago Permalink

      Should need most of the information that you get from “read” operation when trying an “edit” of a user. Can you include the errors that you’re getting along with possible a sample of the code?

  • 0 points Thumb-up Thumb-down Favorite-off by sreuland about 1 month ago Permalink

    Hello, I attached a file with xml requests/responses.

    I noticed an encoded value of the password is included on user element..should that be sent during an edit? I don’t wan’t to inadvertently update that, in my case only the groups element needs to be updated.

    thanks for feedback,

    • 0 points Thumb-up Thumb-down Favorite-off by bradley.wagner about 1 month ago Permalink

      Unfortunately the current Web Services API does not support editing individual properties (i.e. only the groups of a User). I think you can pass an empty password element for the user and this will leave the password unchanged. Also, the <entityType> element should be removed or left empty. I believe this is a bug with our Web Services framework Axis that it returns the EntityType in the read result. We provide a Web Services utility class for doing Java Web Services and one of the steps is to always null the Entity Type before trying to submit the result of a read in an edit.

  • 0 points Thumb-up Thumb-down Favorite-off by sreuland about 1 month ago Permalink

    Hello, I was able to successfully use ‘edit’ operation to update the groups element on user profile after removing the entityType element and blanking out the password element as you suggested. Thank you!

1 attachment


*Note - Please use textile markup to input code examples in the comments box (e.g. start and end the code sections with @ signs). Click the pencil icon in the word processor to remove the WYSIWYG.