Sharing is rewarding

When you want to share results derived using an AIMMS decision support application, you may want to share these in a shared folder such as AIMMS PRO storage. This article discusses an example that shows

  • how to create the authorization string,

  • a potential folder structure

  • save a file, and

  • load that file by another user.

With whom are we sharing

In this section we determine with whom we are sharing our files.

1! Ensure all AIMMS PRO entities are known.
2! Examples of AIMMS PRO entities are the users and the groups.
3guipro::PopulateEntitySets( addUniversalSets:1 );
5! Get the "users" group(s) and the "domain users" group(s) into an AIMMS set.
6! Note that s_UserEntities is a subset of the set guipro::PROEntity
7s_UserEntities :=  { guipro::PRO_ENT |
8    ( StringToLower( guipro::PROEntityName( guipro::PRO_ENT ) ) = "users"        ) or
9    ( StringToLower( guipro::PROEntityName( guipro::PRO_ENT ) ) = "domain users" )    } ;
  • Line 3: This call to AIMMS PRO, via AIMMS PRO UI, is needed to retrieve the number / name / property list of all AIMMS PRO entities. AIMMS PRO entity is a group or an individual.

  • Line 7 - 9: AIMMS set notation to find those groups that are called users or domain users.

So what is the code to open up for our peers?

Now that we identified the groups in which our peers can be found, we can construct an authorization string that permits a user in any of these two groups access.

1sp_AuthUsersRWX := "" ;
2for i_UE do ! For each user group:
3    sp_AuthUsersRWX += formatString("#7+%e", i_UE );
4endfor ;


Resource for this article

The enclosed example shows how to do this.


In this article we showed how to

  • create a permissive authorization string

  • create a folder structure on PRO storage using that authorization string

  • save a file in this folder structure

  • load that file by another user

Further reading

More information can be found in the following references.