Mobile App Services Identity Management

Diego Lizarazo, Developer Advocate 

Managing users and groups in an enterprise is a responsible task. Trust our Mobile App Services (MAS) Identity Management service to securely access users and groups from identity providers such as LDAP, MSAD. You can create groups called ad-hoc groups on the fly for collaborative apps. CA MAS Identity management uses SCIM protocol to manage identities in your apps.

Managing users is similar to managing a social networking site with registered users. Users join the groups and collaborate with each other. The group owner has the power to add the user to a group or remove the users from a specific group.

Download or clone the MAS Identity Management plugin for Cordova repository and follow the instructions to use our MAS Identity Management service:

1.      Just run the following command to add the plugin to your project.

ionic plugin add PATH_TO_PLUGIN

Our earlier article about MAS Foundation <link to the MAS Foundation Blog> guided you in creating a basic Cordova app that starts the MAS SDK and logs in with a username and password.

Now let us enable the app to lists the users and the groups.

2.      Call the following method to lists the users that are logged in to your app:

MASPluginUser.currentUser(successHandler, errorHandler);

3.      Call the following method to lists the number of users that are part of a group:

MASGroup.getGroupByObjectId(successHandler, errorHandler, groupValue);

The groupValue parameter is the unique ID of the group.

4.     Now let us search the users or group using the following filter components:

• Filter string – Contains the field that is to be searched, the search operation and the search value.
   For example, the “username::co::alex” string lets the SDK search for objects whose usrname is “alex”.
   View the MAS documentation for more information about the available options for the filter component.
• Sort attribute – Sorts the results.
• Sort order – The returned result is sorted in an “ascending” or “descending” order.
• Pagination – Specifies the starting index and the number of results that are displayed in the app.

An example that defines a sample filter criterion that is available in the sample app.

var filterRequest = {};
var userAttribute = "userName";
var operator = "co";
var attributeValue = "alex";
var filterStr = userAttribute + "::" + operator + "::" + attributeValue;
filterRequest.filter = [filterStr];
filterRequest.sortOrder = "ascending";
filterRequest.sortAttribute = "userName";
filterRequest.pagination = [1, 10];

5.     Call the following method to use the above filter criteria in your app:

MASPluginUser.getUsersByFilter(succesHandler, errorHandler, filterRequest);

Note: Steps to search a group is similar to the above filter criteria. Visit the MAS Documentation for more information about the MAS Identity Management feature.




Leif Bildoy, Principal Product Manager, CA Technologies

Leif Bildoy is a Principal Product Manager at CA where he plays a central role in defining the strategy & roadmap for the API Management Business Unit’s mobile & IoT products.

Prior to joining CA (through Layer 7 acquisition), Leif worked in product management and development in organizations including Alcatel Telecom, Nokia Research Center, SurfKitchen, MontaVista Software, and Research In Motion (Blackberry). He has an MSc in Advanced Computing from the University of Bristol, UK.

Fale conosco 0800 771 6350
Fale conosco

Chat with CA

Just give us some brief information and we'll connect you to the right CA ExpertCA sales representative.

Our hours of availability are 8AM - 5PM CST.

All Fields Required


We're matching your request.

Unfortunately, we can't connect you to an agent. If you are not automatically redirected please click here.

  • {{}} will be helping you today.

    View Profile

  • Transfered to {{}}

    {{}} joined the conversation

    {{}} left the conversation

  • Your chat with {{$storage.chatSession.messages[$index - 1]}} has ended.
    Thank you for your interest in CA.

    Rate Your Chat Experience.


agent is typing