59
Views
7
Comments
Solved
How to remove sample users
Question

Hello @everyone,

greetings for the day!

i have observed some sample users in the outsystems users app , PFB snapshot, why we are getting these sample users in every environment ?

how to remove those, try to delete those users, but that's not happening, i am thinking these are outsystems sample users for same sample apps which i downloaded not sure about it,  but how to remove that  users from users enity entity, 



2016-04-22 00-29-45
Nuno Reis
 
MVP
Solution

No. Users have been created, so they are there. Would you like to have your account removed from a site because you haven't used it yet?

You have to mark them as inactive so they stop showing up. Maybe adapt some queries to ignore inactive users or users with specific roles.

2021-11-12 04-59-31
Manikandan Sambasivam

Hi,

This issue may occur if the user is referenced in another entity and the delete rule for the reference attribute is set to "Protect." Please check where the user is referenced and check the delete rule of the attribute in that entity.

2020-11-25 10-45-32
Mostafa Othman
Champion

Hello,

If you clicked Edit This user you will find Delete this user link into user edit page

2020-11-25 10-45-32
Mostafa Othman
Champion

If you are trying to delete user and getting error message so its same as @Manikandan Sambasivam mentioned and you can check service center for error message which will indicate this user is referenced in which table.

2019-01-07 16-04-16
Siya
 
MVP

@Priya Naveen I think the users are being created from the OutSystems Sample Data application, specifically from the SampleData_CS module. This module references the EncryptPassword from the User module. However, I cannot confirm this with certainty as Service Studio crashes when attempting to open SampleData_CS.

2016-04-22 00-29-45
Nuno Reis
 
MVP

Sample users, just like sample data, are for sample apps. You probably deployed samples to later environments and it took users along.

It is not advisable to delete regular users. You can do it to test users but, to be safe, just inactivate them.

2024-06-03 11-04-24
Priya Naveen

Yes Correct ,found these are from outsystems Sample data module, it added earlier, however we have now removed unused dependencies, redeployed the app again , will it remove those sample users ?

we haven't assigned any roles to those users

2016-04-22 00-29-45
Nuno Reis
 
MVP
Solution

No. Users have been created, so they are there. Would you like to have your account removed from a site because you haven't used it yet?

You have to mark them as inactive so they stop showing up. Maybe adapt some queries to ignore inactive users or users with specific roles.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.