diff --git a/cloud/microsoft/office365/onedrive/mode/listsites.pm b/cloud/microsoft/office365/onedrive/mode/listsites.pm index a6f888177..e611f503b 100644 --- a/cloud/microsoft/office365/onedrive/mode/listsites.pm +++ b/cloud/microsoft/office365/onedrive/mode/listsites.pm @@ -47,7 +47,7 @@ sub check_options { sub manage_selection { my ($self, %options) = @_; - my $results = $options{custom}->office_get_onedrive_usage(); + my $results = $options{custom}->office_get_onedrive_usage(param => "period='D7'"); foreach my $site (@{$results}) { if (defined($self->{option_results}->{filter_url}) && $self->{option_results}->{filter_url} ne '' && diff --git a/cloud/microsoft/office365/sharepoint/mode/listsites.pm b/cloud/microsoft/office365/sharepoint/mode/listsites.pm index 5a8f0a977..e60628cf6 100644 --- a/cloud/microsoft/office365/sharepoint/mode/listsites.pm +++ b/cloud/microsoft/office365/sharepoint/mode/listsites.pm @@ -47,7 +47,7 @@ sub check_options { sub manage_selection { my ($self, %options) = @_; - my $results = $options{custom}->office_get_sharepoint_site_usage(); + my $results = $options{custom}->office_get_sharepoint_site_usage(param => "period='D7'"); foreach my $site (@{$results}) { if (defined($self->{option_results}->{filter_url}) && $self->{option_results}->{filter_url} ne '' &&