Created new script to mass delete people. Added some notes.
This commit is contained in:
@ -1,4 +1,8 @@
|
||||
<div class="np-learning-path-completed-banner np-learning-path-banner">
|
||||
{% for category in learning_path.categories %}
|
||||
{% if category.name contains "Deep Dive: Core" %}
|
||||
<div class="np-learning-path-completed-banner np-learning-path-banner" style="display: none;">
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<img class="np-learning-path-banner-image" src="https://s3.amazonaws.com/static.northpass.com/images/stars-completed.svg"/>
|
||||
<div class="np-learning-path-banner-content">
|
||||
<h3 class="np-learning-path-banner-headline">{% t .headline %}</h3>
|
||||
|
||||
@ -432,41 +432,3 @@ Notes:
|
||||
|
||||
## 04-30-2024
|
||||
|
||||
James Campbell
|
||||
Can we close down our 2nd instance of Northpass? (password login)
|
||||
Hello @Norm Rasmussen - I think it might make sense for us to shut down the 2nd instance of the learn.pipedrive.com site that requires the username and password.
|
||||
A: There seem to still be issues with people logging in and viewing content on this instance.
|
||||
B: We don't have a flawless process that duplicates all elements from once instance to the other.
|
||||
C: We only had 1,899 registrants in the last 12 months.
|
||||
|
||||
I'm not sure if the low registrant count is due to these issues we're seeing come and go for logging into the https://user-learn.pipedrive.com/ instance. But all I know is the user-base is so much smaller than our initial instance:
|
||||
* https://learn.pipedrive.com/
|
||||
* 20408 registrants in 12 months
|
||||
* https://user-learn.pipedrive.com/
|
||||
* 1899 registrants in 12 months
|
||||
|
||||
My last point is the same I made awhile ago - that we need to be able to actually share the URLs to pieces of content, and have that URL work for all users. Right now all we're sharing is URLs from https://learn.pipedrive.com/ and ergo I don't think these URLs work at all for anyone who is accessing via https://user-learn.pipedrive.com/
|
||||
So to avoid further confusion and trouble - perhaps it's best that we just shut down the 2nd instance: https://user-learn.pipedrive.com/ @Mark Geller ,or @genetschneider - not sure if you want to weigh in here. But those are my immediate thoughts
|
||||
|
||||
Genet Schneider
|
||||
From the maintenance and clarity point of view, we support sunsetting the 2nd instance of Northpass.
|
||||
|
||||
James Campbell
|
||||
@Norm Rasmussen let's do it
|
||||
|
||||
Norm Rasmussen
|
||||
ASAP? We need to check over all your templates to see if and how the two schools interact so that nothing breaks on the school that we're leaving up.
|
||||
|
||||
James Campbell
|
||||
Let us know if action is needed on our end for that @Norm Rasmussen
|
||||
I don't know what our options really are to try and "copy" users from the "user-learn" instance to the "learn" instance, but if we could make the transition as seamless as possible that'd be awesome. I'm guessing since it's SSO we at Pipedrive would need the full list of users, see who is currently signed up for Pipedrive out of those users, and then somehow create new accounts in the "learn" instance for them. Then we email anyone else just explaining they'll need a PD account to sign up?
|
||||
|
||||
In a PERFECT world - Gainsight/Northpass would have multi authentication ready by now and we could make it a lot easier, but let me know when you can
|
||||
|
||||
Norm Rasmussen
|
||||
Hi @james_campbell - We're going through all your templates to ensure everything continues to work as expected. The biggest changes are going to be the various "register" or "login" buttons. Since we don't need to have the user's flow between two instances, the pop-up widget (see screenshot) will be removed and all login/register buttons will direct people to your SSO login page. From there, they can choose to sign up on their own to get access to the remaining academy.
|
||||
You have many of these buttons across the academy so we just need to be 100% complete we uncover all of them so that there is no downtime for the academy.
|
||||
pipedrive-login-widget.png
|
||||
|
||||
Norm Rasmussen
|
||||
As for the users, what you've described is the easiest way. From the People Tab CSV you can filter every who is currently activated so that you're at least adding learners who have fully activated their account and are more likely to see higher engagement.
|
||||
|
||||
@ -15,3 +15,19 @@ Norm to send new sendgrid sectors for sender email domain.
|
||||
May 10th launch with first few groups.
|
||||
Will make a gameplan with Gary on what state will be launched on which date, etc.
|
||||
Norm and Austin to run "resend invitation" API script
|
||||
|
||||
## 05-01-2024
|
||||
|
||||
Last minute meeting with Gary regarding the following:
|
||||
* Our Domain is verified, need to setup a Sender Email Address
|
||||
* Ohio is going LIVE tomorrow, I need to verify the sign in/up landing page and password reset process.
|
||||
* Ohio is now going live next week.
|
||||
* North Carolina goes LIVE next week, same info as Ohio
|
||||
* Need to confirm Pre-Registration turn on (maybe May 31st since we don’t lunch until June 1st)?
|
||||
* Turn on pre-reg early so that they can edit the invitation email
|
||||
* Email Invites? All on June 1st. June 2nd
|
||||
* I’m going to split up each state’s group into 3 groups that match the form option / will need to remove all learners
|
||||
* Will Learner’s go into both state groups AND Role groups? If not, can we make that happen
|
||||
* Caregivers can be added later
|
||||
* Assigning courses to new learner’s as they sign in/up?
|
||||
* Report setup for scheduled completions
|
||||
|
||||
7
CustomerNotes/Walmart_Volt/Volt.md
Normal file
7
CustomerNotes/Walmart_Volt/Volt.md
Normal file
@ -0,0 +1,7 @@
|
||||
# Walmart Volt
|
||||
|
||||
## 05-01-2024
|
||||
|
||||
Dan Kardell is a new Sr. Manager of Volt's Frontend. [Linkedin.](https://www.linkedin.com/in/dkardell/)
|
||||
|
||||
His questions mostly revolved around any automations that they can trigger in their app based on content available in CE. I let him know that we were in the discovery phase of a new course publishing webhook, which he said would be absolutely perfect. Let him know that I would get him a sample payload as soon as it becomes available.
|
||||
@ -4,7 +4,7 @@ from pathlib import Path
|
||||
import Apikeys
|
||||
import os
|
||||
|
||||
basefile = "/Users/normrasmussen/Downloads/mizuno-mla.csv"
|
||||
basefile = "/Users/normrasmussen/Downloads/mizuno-april-completions.csv"
|
||||
api_key = Apikeys.MIZUNO
|
||||
uuid_url = "https://api.northpass.com/v2/people?filter[email][eq]="
|
||||
prop_url = "https://api.northpass.com/v2/properties/people/"
|
||||
@ -26,7 +26,7 @@ def load_file(basefile):
|
||||
for email in completions.itertuples():
|
||||
row_num = email[0]
|
||||
row_dict = {"row_num": row_num}
|
||||
email = email[3]
|
||||
email = email[2]
|
||||
url = uuid_url + f"{email}"
|
||||
response = requests.get(url, headers=headers)
|
||||
if response.status_code == 200:
|
||||
@ -50,7 +50,7 @@ def load_file(basefile):
|
||||
completions = completions[completions["userid"] != "0"]
|
||||
# completions = completions.iloc[:, 0:]
|
||||
completions.to_csv(
|
||||
"/Users/normrasmussen/Downloads/Mizuno-March2024-with-PGAID.csv",
|
||||
"/Users/normrasmussen/Downloads/Mizuno-April2024-with-PGAID.csv",
|
||||
index=False,
|
||||
)
|
||||
|
||||
|
||||
40
Scripts/API_Tests/mass_delete_learners_based_on_group.py
Normal file
40
Scripts/API_Tests/mass_delete_learners_based_on_group.py
Normal file
@ -0,0 +1,40 @@
|
||||
import Apikeys
|
||||
import requests
|
||||
import pprint
|
||||
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
BASEURL = "https://api.northpass.com/v2"
|
||||
LEARNFILTER = "?filter[partnerships_type][eq]=Partnerships::Learner"
|
||||
APIKEY = Apikeys.SANDATA
|
||||
HEADERS = { "accept": "application/json", "X-Api-Key": APIKEY }
|
||||
|
||||
def get_people():
|
||||
count = 0
|
||||
while True:
|
||||
count =+ 1
|
||||
url = f"{BASEURL}/people/{LEARNFILTER}&limit=100&page={count}"
|
||||
resp = requests.get(url, headers=HEADERS)
|
||||
json = resp.json()
|
||||
nextlink = json['links']
|
||||
|
||||
for data in json['data']:
|
||||
id = data['id']
|
||||
groups = data['relationships']['groups']
|
||||
print(groups)
|
||||
for key,val in groups.items():
|
||||
if groups == "":
|
||||
print(groups)
|
||||
else:
|
||||
print("Else")
|
||||
|
||||
if "next" not in nextlink:
|
||||
break
|
||||
|
||||
"""
|
||||
Bulk delete endpoint: https://api.northpass.com/v2/bulk/people/delete
|
||||
Payload:
|
||||
payload = { "payload": ["asd", "asd", "asd"] }
|
||||
"""
|
||||
|
||||
if __name__ == "__main__":
|
||||
get_people()
|
||||
@ -8,7 +8,7 @@ const rl =
|
||||
})
|
||||
var userEmail= 'nrasmussen@northpass.com';
|
||||
var userPassword= 'ecx5pmy!MAN2vgh2knc';
|
||||
var otp = '';
|
||||
var otp = '795885';
|
||||
var schoolUUID = '52d19519-103f-45e3-9fa8-d21baa0f8aaa'
|
||||
var courseUUIDs = [
|
||||
"6acf3a5b-0f1e-4539-b1e5-697745adfd73",
|
||||
|
||||
6
Todos.md
6
Todos.md
@ -274,3 +274,9 @@ message](https://northpasshq.slack.com/archives/C04RER4PH09/p1709147957374999?th
|
||||
- [ ] Cin7 - Email Courtney with these questions re: Academy Changes
|
||||
- [ ] Homepage carousel: Core shows LPs & Deep Dives, Omni just shows category carousel. What should multi-prod show? (Omni/Core Courses are separated at the carousel level, we cannot show both types of courses in a single carousel)
|
||||
|
||||
## 05-01-2024
|
||||
|
||||
- [ ] Volt - Let Dan know when a sample of the publishing webhook is available.
|
||||
- [ ] Sandata - Add to workflow --> if learner selects `admin` in form, assign EVV Agency Administrator Training role.
|
||||
- [ ] Sandata - Delete everyone that is not in Ohio and California.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user