Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Regular Contributor
Posts: 229
Registered: ‎10-26-2015

Geospatial Portal SDK - Capture current username

Is it possible to capture the username of the current logged in user using the Geospatial Portal SDK and then store the username as a variable which can be used to populate a attribute when inserting a feature through a WFS?

 

The Geospatial Portal instance has Windows Authentication enabled so every user accessing the portal is authenticated and their username is shown under the Authentication tab.

 

I know this may be possible through integration with Workflow Manager but that is an expensive product to implement just for this simple requirement.

 

I appreciate any replies.

 

Thanks,

 

Colin

Technical Evangelist
Posts: 927
Registered: ‎09-11-2015

Re: Geospatial Portal SDK - Capture current username

Hi Colin

 

I don't have experiences with Windows Authentication but I wonder - is there any response for the following call?

$GP.user.getCurrent().name

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Highlighted
Regular Contributor
Posts: 229
Registered: ‎10-26-2015

Re: Geospatial Portal SDK - Capture current username

Thanks Jan I will take a look at that call.

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.