Final-year internship, internal tool, prototype validated in a test environment

Licences assigned at sign-in, reclaimed every night

In Good iD's test environment, licences that were assigned once and never removed went on being billed every month. I developed an app that grants the licence when an engineer signs in and automatically reclaims it overnight.

Try the mock-up

Context and goal

Engineers use a test environment to prepare a configuration, reproduce a case or demonstrate a feature. Access to the features requires a licence, and Flex licences are billed monthly, per assigned user. A licence assigned to someone who signed in once in April is still being billed in July.

Nobody removes them: nothing prompts anyone to, and the individual cost is low. It is the build-up that costs money. The goal was to make that build-up impossible, without making access any harder for engineers.

What I did

The app automates the full cycle. At sign-in, it identifies the user from their session, retrieves the organisation ID from the directory, checks that they do not already hold a licence of the target type, then assigns it to them. A scheduled run, independent of any sign-in, removes the licences overnight.

Assigned by day, reclaimed by night During the day, the engineer opens the app; it identifies them by their session, retrieves the organisation ID from the directory, checks that they do not already have the licence and assigns it. Every night, a scheduled run removes the assigned licences. During the day Sign-in to the web app Session identifies the user Directory organisation ID Licence already held? Licence assigned no yes: no action Every night Scheduled run independent of sign-ins Licences removed no more build-up
The app's cycle. Diagram redrawn; I do not publish the code, which belongs to the company.

Control, or be able to undo

At first I thought in terms of authorisation: who is allowed to get a licence, whether approval is needed, how to prevent abuse. For two days, that is where I was looking. It was the technical lead who turned the question around: rather than approving each request, make the assignment easy to undo.

“No control” would be inaccurate, though. Two automatic checks remain at the heart of the set-up: the user must have authenticated on the test environment, and the app checks that they do not already hold a licence of the target type. The tool is limited to a single licence type. What disappears is manual, case-by-case approval, replaced by automatic reversibility.

Simulation, fictitious data

Try it: one month of a test environment

Twelve fictitious engineers sign in on some days only, rarely at weekends. Move the month forward and compare what remains assigned each evening. No real billing figures are used.

Without reclaiming

0

licences assigned and still billed tonight

Reclaimed every night

0

licences used today, all reclaimed tonight

Verifiable results

  • RecordedApp working and validated in the company's test environment.
  • RecordedNightly removal makes licence build-up impossible, which was the problem to solve. I did not put a figure on the savings.

Risks I did not remove

  • The daytime window. An assigned licence remains usable until it is removed at night. The set-up does not protect against inappropriate use in that interval.
  • No log. The tool keeps no timestamped record of its own assignments. The stakes are low in an internal environment; elsewhere it would be a blocker.
  • Outside the test environment. Equivalent use at a client would require a security review and an explicit definition of eligible user groups, which was beyond my scope.