Deletion of users from moodle - moodle

I have deleted users from moodle but the deleted users still show up in the users list with ability to undelete them. Is there any way to remove the deleted users from the users list.

Only with SQL - exercise with caution though
DELETE FROM mdl_user WHERE deleted = 1
This is after you have deleted the user via the front end - which will (in theory) delete all the users data.

Related

List all users in PostgreSQL and identify non ad user

I wanted to list all users in postgreSQL and I would like to identify the users which are not linked to Active Directory.
select * from pg_user;
Above lists all users. I am trying to set up an alert when other dbas create an user which are not part of Active Directory and notify me.
I am looking for a solution.
If your pg_hba.conf only had two lines, one for 'postgres' and one (which goes through AD) for every one else, then you would just need to monitor that file for changes. They might be able to create a user that doesn't yet exist in AD, but they would then be unable to log on.

Why tableau is not removing Users from All users when I remove AD group?

We just purchase tableau 10 and we are new to Tableau. I am having a following problem.
I am adding AD group to the site I created, it adds all user that are in AD group but when I want to remove AD group, AD group gets removed but all users are still listed under All Users. I am syncing Tableau with AD directory every 15 minutes and still they are listed there and all users in AD group are still able to signing in into Tableau Site. Any suggestion what I need to do ?
Ideally, deleting a group wont delete the users. To delete users you need to go to the users tab and select the users you want to delete.
See more : http://kb.tableau.com/articles/knowledgebase/deleting-user-from-tableau-server

Tableau - Clean Up All Users Group

I added a group to a site. The users were then added to the All Users group. I then removed the group, but the users remained.
Is there anyway to clean this up so that the users get deleted?
Thanks
To be clear, you want to delete the users that were in the group?
Creating and deleting groups does not create or delete users. To delete users you need to go to the users tab and select the users you want to delete.
Also, keep in mind that if the user owns content you will get a message saying:
"[user] was unlicensed" instead of the expected “[user] was deleted”
message.
The “unlicensed” message displays because the user who you want to
delete is a workbook or project owner and therefore cannot be deleted.
In other words, a user can only be permanently deleted from Tableau
Server if he or she no longer owns a workbook or project.
See more here: http://kb.tableau.com/articles/knowledgebase/deleting-user-from-tableau-server
Tableau is not good with Active Directory when it comes to removing users. If you ADD Active Directory account and set up sync, it will add a new user who will be added in AD group but once you remove AD group it will not remove any users who were in AD group.
In order to remove those users, you need to go to all users and delete the Users manually which defeats the purpose of using AD groups.

Alfresco Share - Can't find people as site manager after bulk upload

I create a lot of users (~350) using User CSV Uploader (/alfresco/service/api/people/upload) and then as site maneger i tried to invite some of this users, but i can't find them.
Steps:
create a list of users (using CSV template) - OK
upload the list - OK
check if the users exist - OK
as site manger and alfresco_administrator when i go to http//mydomain/share/page/site/mysite/invite and search for user (let's say TESTUSER) the user is listed and is allowed to be invited
as site manager (not alfresco_administrator) when i go to http//mydomain/share/page/site/mysite/invite and search for user TESTUSER the user is not listed
The user TESTUSER exist and was created using CSV upload.
I creat manualy another user TESTUSER2 and i follow steps 3,4 and 5. In this case this user TESTUSER2 is listed in both case.
My question is: There is a possibility to "reindex" all user or i need to create ~300 users manualy.
Right now LDAP or AD is not an option.
Alfresco 4.2c/Centos 6.4/SOLR (full reindex after 2 days)
Thank You!
Geo
are you able to find the persons via people finder /share/page/people-finder?
If not, are you able to find the persons when appending [hint:useCQ] (forces usage of DB instead of SearchIndex) to your people search term?
If you find the persons using this hint, then your Solr Index is not in sync.

How can I delete a group of posts that my app created?

My app sent out a batch of posts tonight that were created erroneously. I would like to delete them, but I don't currently store the ids of posts that I create.
Is there a way to query for posts made after a certain time?
Once I have the ids I think I know how to delete them.
I'm using the Ruby gems facebooker2 and mogli.
You can retrieve the posts from feed or home connection of user.
For using those connections to read users post you will need read_stream permissions from user (which may be a bit problematic in your case if you not yet have this permission granted) and active access_token (this one will be needed to remove the posts too).
feed connection can be easily parsed to get posts from your application (since every post object have application property containing name and id)
home connection contain much more details to parse but you can filter results by application using filter (like /USER_ID/home/filter=app_2305272732).
Once you discovered the posts you may delete 'em by issuing DELETE request to Graph API:
DELETE https://graph.facebook.com/POST_ID?access_token=...
Or several posts for same user:
DELETE https://graph.facebook.com/?ids=POST_ID_1,POST_ID_2,POST_ID_N?access_token=...
Notes:
Since you said you didn't stored ids of post that published, more problematic may be discovering the list of users who got posted.