Bulk import of user data, for AuthN and Perms modules

Description

Given a flat file of user records, we are interested in the following fields, per user:

  • Patron Group(s)

  • Staff Member Permissions

  • Username

  • Password

  • For the our purposes, we should treat both Groups and Permissions as permissions, since (in our view) a Group is merely a permission with a number of sub-permissions. Thus, we begin with the Groups and Permissions.

The first thing we need to do is make certain that they exist. We can query the Permissions module to determine this. If they do not exist, we need to tell the Permissions module to create the permissions in question.

Next, we'll create a user entry in the Permissions module, with the name corresponding to our username field, and the permissions possessed by this user corresponding to the groups and member permissions in our flatfile entry.

Finally, we'll create a user entry in the Authentication module, with username and password set for the login credentials.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Cate Boerema October 25, 2016 at 11:34 AM

Resolving as done, but this is a duplicate of okapi 212

Done

Details

Assignee

Reporter

Priority

Sprint

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created September 29, 2016 at 8:17 PM
Updated December 7, 2018 at 3:44 PM
Resolved October 25, 2016 at 11:33 AM
TestRail: Cases
TestRail: Runs