ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins.Read more for important details.
Lieutenant Commander
Lieutenant Commander

sign_out not working in groovy script

Hi, we are using  groovy script to gather all user data for managing users outside of Octane, however we use a license when doing so because we use the HPE_MQM_UI in order to get the data we need as the rest api does not have what we require.

the groovy script created does everything i need except for signing out the user and releasing the license, we now run the script every 3 hours for the session to timeout but i would like to understand why does my call not work, here is my sign)out script, the result is just telling me that the user is already signed in...

def octSignOut() /*This function will end the session octane session*/
println "sign out"
def post = new URL("").openConnection()
def message = ''
post.setRequestProperty("Content-Type", "application/json")
//post.setRequestProperty("HPECLIENTTYPE", "HPE_SWAGGER_API")
post.setRequestProperty("Cookie", "LWSSO_COOKIE_KEY=${octLWSSO}")
post.setRequestProperty("Cookie", "OCTANE_USER=${octUSER}")
post.setRequestProperty("Cookie", "BIGipServer${octBIG}")
//post.setRequestProperty("XSRF-HEADER", "${octCSRF}")
ResponseCode = post.getInputStream()
1 Reply
Micro Focus Expert
Micro Focus Expert

Hi @guccifunboy 

R&D have investigated your question, and we could not reproduce the issue - sign out call releases the license as expected in the product. in order to understand specifically why it is not working in your case we will need more details to investigate - please open a support ticket so we can continue through this channel to resolve the issue.



The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.