Hi,
You can hide an admin column for a user role/ID when registering the custom fields with code. For example:
function your_prefix_function_name( $meta_boxes ) {
$admin_columns = true;
global $current_user;
$user_roles = $current_user->roles;
$user_role = array_shift($user_roles);
if( $user_role != 'administrator' ) $admin_columns = false;
$meta_boxes[] = [
'title' => __( 'My Custom Fields', 'your-text-domain' ),
'id' => 'my-custom-fields',
'fields' => [
[
'name' => __( 'Text', 'your-text-domain' ),
'id' => 'text_9wwu55lol0q12',
'type' => 'text',
'admin_columns' => $admin_columns
],
],
];
return $meta_boxes;
}
This code will remove the admin columns of the text field if the logged in user is not an administrator.