Gathering User-roles

N

notyelf

Hi All.

I need to set logic on a form based on user roles. Basically different parts
of a form will be locked based on different user roles. My problem however is
this; I can not get Infopath to figure out who other people or myself are as
users.

Is there a way for infopath to gather usernames?
 
C

Clay Fox

In InfoPath 2007 there is a function, however this gets the local username.
So if you are using a VPN or a network login from a local computer it can
return the wrong account.

You can get an Active Directory Web Service which will return the account
you are using for the resource from http://www.qdabra.com

There are also some tricks to getiing the username from SharePoint.

--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 
N

notyelf

How would you do it from sharepoint?

Clay Fox said:
In InfoPath 2007 there is a function, however this gets the local username.
So if you are using a VPN or a network login from a local computer it can
return the wrong account.

You can get an Active Directory Web Service which will return the account
you are using for the resource from http://www.qdabra.com

There are also some tricks to getiing the username from SharePoint.

--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 
C

Clay Fox

It is a bit convoluted.
You have to save your form to Sharepoint
Query the document library for the particular file and get the user name
Then you have to delete the file, which is also complex.

You can see instructions and post on this on http://www.infopathdev.com

The ADWebservice is cheap and works much easier, plus you can get group
membership, email address, etc.
It is included with the Database Accelerator download.
--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top