UserAccessCollectionRemove

You can use the UserAccessCollectionRemove function to programmatically manage access collections for Infor PLM Optiva users within workflows and copy methods.

When to use

You can use this function to:

  • Remove an access collection from a user.
  • Remove one or more access collections assigned to a user.

When not to use

You cannot use this function when group or role security is active.

Syntax

int UserAccessCollectionRemove(string UserCode, string AccessCollectionsList);

Parameters

Parameter Type Required Description
UserCode string Yes The user code or user name that identifies the Optiva user from whom the access collection will be removed.
AccessCollectionsList string Yes A semicolon-separated list of access collection codes. For example, "AC_ADMIN;AC_QA".

Return Value

The application returns a value greater than zero (0) if the operation is successful.

Otherwise, the operation fails.

Prerequisites

  • The access collections must exist in the system.
  • Access collection security must be enabled.

Examples

Example 1
Remove access collections from user FSI.
UserAccessCollectionRemove("FSI", "AC_RND;AC_QUALITY");
Example 2
Remove AccessCollections from current user.
UserAccessCollectionRemove("", "AC_RND;AC_TEST");