Community discussions

MUM Europe 2020
 
lukef
newbie
Topic Author
Posts: 35
Joined: Mon Jul 07, 2008 4:48 am

Clear profiles

Fri Dec 05, 2014 3:42 am

Hey Guys
Hoping someone can help me with this. I have a customer that would like to allow their users 40GB of data to use per month. If they go over this allowance they can purchase another datablock (by adding another profile to the user)
At the end of the month they would like all datablocks to expire and start again with a 40GB block.
I figured i could do this with profiles + limitations and scripts at the end of the month using the following
:foreach i in=[/tool user-manager user find] do={/tool user-manager user reset-counters $i;}
:foreach i in=[/tool user-manager user find] do={/tool user-manager user create-and-activate-profile $i customer=hs_admin profile=Default40GB;}

The issue I have is I need to be able to remove the existing profiles for this to work neatly. From what i can see there are no commands to remove profiles except through the web interface.
Does anyone have any other ideas on how this can be done
 
technicarl
just joined
Posts: 13
Joined: Wed Nov 26, 2014 7:07 am

Re: Clear profiles

Fri Dec 05, 2014 5:27 am

Hi,

I don't see an answer yet, but recreating the user would work around the problem. ?

Who is online

Users browsing this forum: No registered users and 4 guests