You are viewing limited content. For full access, please sign in.

Question

Question

Getting the Organization value from LFDS to use in Forms

asked on December 11, 2017

Good morning,

In LFDS there is a field for Organization. We have these fields populated. What we are trying to do is somehow populate this field value into Forms, say in a SingleLine field or something. 

We'll be using this as an identification method. 

Any ideas or suggestions?

Thank you,

Raul Gonzalez

0 0

Answer

SELECTED ANSWER
replied on December 13, 2017

If it's Forms team, you can use Forms webapi request to get all teams that user belongs to:

http://FormServer/Forms/webapi/v1/user/[user_SID]?teamMode=all&team_fields=name,id,yourAdminRights,yourMemberRights,settings&user_fields=none

The user_SID can be found in database [cf_users] table.

1 0

Replies

replied on December 11, 2017

Hi Raul,

Forms does not keep the organization that current user belongs to, as the authentication is done on LFDS side.

I think maybe you can save a list of users and their organizations in a separated database, and setup lookup rules to match current user in Forms.

0 0
replied on December 12, 2017

Thanks Rui,

Do you know of a way to retrieve the group(s) that the user belong to? Either by Forms or an SQL query?

0 0
replied on December 12, 2017

Forms did not keep user and groups mapping. Maybe you can ask the question in Directory Server topic and see if people in LFDS know that.

0 0
replied on December 13, 2017

I'm sorry, I meant "Teams"

0 0
SELECTED ANSWER
replied on December 13, 2017

If it's Forms team, you can use Forms webapi request to get all teams that user belongs to:

http://FormServer/Forms/webapi/v1/user/[user_SID]?teamMode=all&team_fields=name,id,yourAdminRights,yourMemberRights,settings&user_fields=none

The user_SID can be found in database [cf_users] table.

1 0
replied on December 14, 2017

Thanks Rui, yes it seems that with your URL format I can retrieve an array of information.

I'll give it a shot to see how I can implement this in our form. What we are trying to do is display content for users that belong to a particular team only.

Thanks again,

Raul Gonzalez

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.