--- title: "Core Actions" slug: "core-actions-1" description: "This is a list of actions that can be used by RapidIdentity Connect to interact with the core elements of RapidIdentity." tags: ["RapidIdentity ", "Connect", "Actions", "Core"] updated: 2022-06-03T19:21:16Z published: 2022-06-03T19:21:16Z canonical: "help.rapididentity.com/core-actions-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.rapididentity.com/llms.txt > Use this file to discover all available pages before exploring further. # Core Actions ## definePortalConnection Define a connection to a Portal server and optionally login for a token. | Property | Value | Description | | --- | --- | --- | | url* | text, expression, variable | The url of the Portal server. | | username | text, expression, variable | The username for authentication to the Portal server. | | password | password, string, expression, variable | The password for authentication to the Portal server. | | login | boolean, expression, variable | Determines whether or not to login for an authentication token. If false, each Portal action will perform a full authentication. Set this to true if you are invoking 2 or more actions within this session. | | remoteDebug | choice ('OFF', 'DEBUG', 'DEBUG_ALL'), text, expression, variable | Remote Portal request debug logging options. DEBUG: standard debug logging. DEBUG_ALL: extended debug logging (not recommended). | | options | expression, variable | A record or JavaScript object with a field for each additional option. Currently defined fields are connectTimeout and socketTime which require a numeric value from 1 to 2147483647 (0x7FFFFFFF) that represents the number of milliseconds for the timeout, and 0 representing no timeout. | | returnVariable | expression, variable | The name of the variable to be assigned to the return value | ```actionscript connection = definePortalConnection("http://server.company.com", "testuser1", , true) connection = definePortalConnection("http://server.company.com", "testuser1", , true, \'DEBUG\') ``` ## getPortalIdautoIDForRole Creates/Retrieves the IdautoID value for a particular Role in LDAP | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the Portal connection definition | | roleDN* | text, expression, variable | the DN of the Group in question | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript idautoID = getPortalIdautoIDForGroup(connection, "CN=My Group,OU=groups,DC=example,DC=com") ``` ## getPortalIdautoIDForUser Creates/Retrieves the IdautoID value for a particular User in LDAP | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the Portal connection definition | | userDN* | text, expression, variable | the DN of the User in question | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript idautoID = getPortalIdautoIDForUser(connection, "CN=Homer Simpson,OU=people,DC=example,DC=com") ```