Skip to content

Commit 0074733

Browse files
[Bot] push changes from Files.com
1 parent 08f0103 commit 0074733

14 files changed

Lines changed: 159 additions & 14 deletions

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@ Exception
583583
|`ApiKeyOnlyForDesktopAppException`| `NotAuthorizedException` |
584584
|`ApiKeyOnlyForMobileAppException`| `NotAuthorizedException` |
585585
|`ApiKeyOnlyForOfficeIntegrationException`| `NotAuthorizedException` |
586-
|`BillingOrSiteAdminPermissionRequiredException`| `NotAuthorizedException` |
587586
|`BillingPermissionRequiredException`| `NotAuthorizedException` |
588587
|`BundleMaximumUsesReachedException`| `NotAuthorizedException` |
589588
|`BundlePermissionRequiredException`| `NotAuthorizedException` |
@@ -615,6 +614,11 @@ Exception
615614
|`ReauthenticationNeededActionException`| `NotAuthorizedException` |
616615
|`RecaptchaFailedException`| `NotAuthorizedException` |
617616
|`SelfManagedRequiredException`| `NotAuthorizedException` |
617+
|`SiteAdminOrPartnerAdminPermissionRequiredException`| `NotAuthorizedException` |
618+
|`SiteAdminOrWorkspaceAdminOrFolderAdminPermissionRequiredException`| `NotAuthorizedException` |
619+
|`SiteAdminOrWorkspaceAdminOrPartnerAdminOrFolderAdminPermissionRequiredException`| `NotAuthorizedException` |
620+
|`SiteAdminOrWorkspaceAdminOrPartnerAdminPermissionRequiredException`| `NotAuthorizedException` |
621+
|`SiteAdminOrWorkspaceAdminPermissionRequiredException`| `NotAuthorizedException` |
618622
|`SiteAdminRequiredException`| `NotAuthorizedException` |
619623
|`SiteFilesAreImmutableException`| `NotAuthorizedException` |
620624
|`TwoFactorAuthenticationRequiredException`| `NotAuthorizedException` |

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.527
1+
2.0.528

docs/Model/Partner.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
```
66
{
77
"allow_bypassing_2fa_policies": true,
8+
"allowed_ips": "10.0.0.0/8\n127.0.0.1",
89
"allow_credential_changes": true,
910
"allow_providing_gpg_keys": true,
1011
"allow_user_creation": true,
@@ -28,6 +29,7 @@
2829
```
2930

3031
* `allow_bypassing_2fa_policies` (boolean): Allow Partner Admins to change Two-Factor Authentication requirements for Partner Users.
32+
* `allowed_ips` (string): A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
3133
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
3234
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
3335
* `allow_user_creation` (boolean): Allow Partner Admins to create users.
@@ -78,6 +80,7 @@ $partner->find($id);
7880
```
7981
$partner = new \Files\Model\Partner();
8082
$partner->create(, [
83+
'allowed_ips' => "10.0.0.0/8\n127.0.0.1",
8184
'allow_bypassing_2fa_policies' => false,
8285
'allow_credential_changes' => false,
8386
'allow_providing_gpg_keys' => false,
@@ -93,6 +96,7 @@ $partner->create(, [
9396

9497
### Parameters
9598

99+
* `allowed_ips` (string): A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
96100
* `allow_bypassing_2fa_policies` (boolean): Allow Partner Admins to change Two-Factor Authentication requirements for Partner Users.
97101
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
98102
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
@@ -111,6 +115,7 @@ $partner->create(, [
111115
$partner = \Files\Model\Partner::find($id);
112116
113117
$partner->update([
118+
'allowed_ips' => "10.0.0.0/8\n127.0.0.1",
114119
'allow_bypassing_2fa_policies' => false,
115120
'allow_credential_changes' => false,
116121
'allow_providing_gpg_keys' => false,
@@ -125,6 +130,7 @@ $partner->update([
125130
### Parameters
126131

127132
* `id` (int64): Required - Partner ID.
133+
* `allowed_ips` (string): A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
128134
* `allow_bypassing_2fa_policies` (boolean): Allow Partner Admins to change Two-Factor Authentication requirements for Partner Users.
129135
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
130136
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
@@ -139,6 +145,7 @@ $partner->update([
139145
```json
140146
{
141147
"allow_bypassing_2fa_policies": true,
148+
"allowed_ips": "10.0.0.0/8\n127.0.0.1",
142149
"allow_credential_changes": true,
143150
"allow_providing_gpg_keys": true,
144151
"allow_user_creation": true,

docs/Model/Site.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@
8888
"non_sso_groups_allowed": true,
8989
"non_sso_users_allowed": true,
9090
"folder_permissions_groups_only": true,
91+
"group_admins_can_add_users": true,
92+
"group_admins_can_delete_users": true,
93+
"group_admins_can_enable_disable_users": true,
94+
"group_admins_can_modify_users": true,
95+
"group_admins_can_reset_passwords": true,
96+
"group_admins_can_set_user_password": true,
9197
"hipaa": true,
9298
"icon128": {
9399
"name": "My logo",
@@ -270,6 +276,7 @@
270276
"partner_name": "example",
271277
"password_set_at": "2000-01-01T01:00:00Z",
272278
"password_validity_days": 1,
279+
"primary_group_id": 1,
273280
"public_keys_count": 1,
274281
"receive_admin_alerts": true,
275282
"require_2fa": "always_require",
@@ -315,8 +322,7 @@
315322
"welcome_email_subject": "example",
316323
"welcome_email_enabled": true,
317324
"welcome_screen": "user_controlled",
318-
"windows_mode_ftp": true,
319-
"group_admins_can_set_user_password": true
325+
"windows_mode_ftp": true
320326
}
321327
```
322328

@@ -395,6 +401,12 @@
395401
* `non_sso_groups_allowed` (boolean): If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
396402
* `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
397403
* `folder_permissions_groups_only` (boolean): If true, permissions for this site must be bound to a group (not a user).
404+
* `group_admins_can_add_users` (boolean): Allow group admins to create users in their groups
405+
* `group_admins_can_delete_users` (boolean): Allow group admins to delete users in their groups
406+
* `group_admins_can_enable_disable_users` (boolean): Allow group admins to enable or disable users in their groups
407+
* `group_admins_can_modify_users` (boolean): Allow group admins to modify users in their groups
408+
* `group_admins_can_reset_passwords` (boolean): Allow group admins to reset passwords for users in their groups
409+
* `group_admins_can_set_user_password` (boolean): Allow group admins to set password authentication method
398410
* `hipaa` (boolean): Is there a signed HIPAA BAA between Files.com and this site?
399411
* `icon128` (Image): Branded icon 128x128
400412
* `icon16` (Image): Branded icon 16x16
@@ -496,7 +508,6 @@
496508
* `welcome_email_enabled` (boolean): Will the welcome email be sent to new users?
497509
* `welcome_screen` (string): Does the welcome screen appear?
498510
* `windows_mode_ftp` (boolean): Does FTP user Windows emulation mode?
499-
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
500511

501512
---
502513

@@ -629,6 +640,11 @@ $site->update(, [
629640
'protocol_access_groups_only' => false,
630641
'revoke_bundle_access_on_disable_or_delete' => false,
631642
'bundle_watermark_value' => {"key":"example value"},
643+
'group_admins_can_add_users' => false,
644+
'group_admins_can_delete_users' => false,
645+
'group_admins_can_enable_disable_users' => false,
646+
'group_admins_can_modify_users' => false,
647+
'group_admins_can_reset_passwords' => false,
632648
'group_admins_can_set_user_password' => false,
633649
'bundle_recipient_blacklist_free_email_domains' => false,
634650
'bundle_recipient_blacklist_domains' => ["example"],
@@ -795,7 +811,12 @@ $site->update(, [
795811
* `protocol_access_groups_only` (boolean): If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
796812
* `revoke_bundle_access_on_disable_or_delete` (boolean): Auto-removes bundles for disabled/deleted users and enforces bundle expiry within user access period.
797813
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
798-
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
814+
* `group_admins_can_add_users` (boolean): Allow group admins to create users in their groups
815+
* `group_admins_can_delete_users` (boolean): Allow group admins to delete users in their groups
816+
* `group_admins_can_enable_disable_users` (boolean): Allow group admins to enable or disable users in their groups
817+
* `group_admins_can_modify_users` (boolean): Allow group admins to modify users in their groups
818+
* `group_admins_can_reset_passwords` (boolean): Allow group admins to reset passwords for users in their groups
819+
* `group_admins_can_set_user_password` (boolean): Allow group admins to set password authentication method
799820
* `bundle_recipient_blacklist_free_email_domains` (boolean): Disallow free email domains for Bundle/Inbox recipients?
800821
* `bundle_recipient_blacklist_domains` (array(string)): List of email domains to disallow when entering a Bundle/Inbox recipients
801822
* `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.

docs/Model/User.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"partner_name": "example",
5353
"password_set_at": "2000-01-01T01:00:00Z",
5454
"password_validity_days": 1,
55+
"primary_group_id": 1,
5556
"public_keys_count": 1,
5657
"receive_admin_alerts": true,
5758
"require_2fa": "always_require",
@@ -129,6 +130,7 @@
129130
* `partner_name` (string): Name of the Partner if this user belongs to a Partner
130131
* `password_set_at` (date-time): Last time the user's password was set
131132
* `password_validity_days` (int64): Number of days to allow user to use the same password
133+
* `primary_group_id` (int64): Primary group ID for Group Admin scoping
132134
* `public_keys_count` (int64): Number of public keys associated with this user
133135
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
134136
* `require_2fa` (string): 2FA required setting
@@ -245,6 +247,7 @@ $user->create(, [
245247
'partner_admin' => true,
246248
'partner_id' => 1,
247249
'password_validity_days' => 1,
250+
'primary_group_id' => 1,
248251
'readonly_site_admin' => true,
249252
'receive_admin_alerts' => true,
250253
'require_login_by' => "2000-01-01T01:00:00Z",
@@ -305,6 +308,7 @@ $user->create(, [
305308
* `partner_admin` (boolean): Is this user a Partner administrator?
306309
* `partner_id` (int64): Partner ID if this user belongs to a Partner
307310
* `password_validity_days` (int64): Number of days to allow user to use the same password
311+
* `primary_group_id` (int64): Primary group ID for Group Admin scoping
308312
* `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
309313
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
310314
* `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
@@ -406,6 +410,7 @@ $user->update([
406410
'partner_admin' => true,
407411
'partner_id' => 1,
408412
'password_validity_days' => 1,
413+
'primary_group_id' => 1,
409414
'readonly_site_admin' => true,
410415
'receive_admin_alerts' => true,
411416
'require_login_by' => "2000-01-01T01:00:00Z",
@@ -467,6 +472,7 @@ $user->update([
467472
* `partner_admin` (boolean): Is this user a Partner administrator?
468473
* `partner_id` (int64): Partner ID if this user belongs to a Partner
469474
* `password_validity_days` (int64): Number of days to allow user to use the same password
475+
* `primary_group_id` (int64): Primary group ID for Group Admin scoping
470476
* `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
471477
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
472478
* `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
@@ -541,6 +547,7 @@ $user->update([
541547
"partner_name": "example",
542548
"password_set_at": "2000-01-01T01:00:00Z",
543549
"password_validity_days": 1,
550+
"primary_group_id": 1,
544551
"public_keys_count": 1,
545552
"receive_admin_alerts": true,
546553
"require_2fa": "always_require",

lib/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function middlewareRemoveHeader($header)
2020

2121
class Api
2222
{
23-
const VERSION = "2.0.527";
23+
const VERSION = "2.0.528";
2424
private static function pushRetryHandler($handlerStack)
2525
{
2626
$shouldRetry = function ($retries, $request, $response, $exception) {

lib/Exception/NotAuthorized/BillingOrSiteAdminPermissionRequiredException.php renamed to lib/Exception/NotAuthorized/SiteAdminOrPartnerAdminPermissionRequiredException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
use Files\Exception\NotAuthorizedException;
66

7-
class BillingOrSiteAdminPermissionRequiredException extends NotAuthorizedException
7+
class SiteAdminOrPartnerAdminPermissionRequiredException extends NotAuthorizedException
88
{
99
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Files\Exception\NotAuthorized;
4+
5+
use Files\Exception\NotAuthorizedException;
6+
7+
class SiteAdminOrWorkspaceAdminOrFolderAdminPermissionRequiredException extends NotAuthorizedException
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Files\Exception\NotAuthorized;
4+
5+
use Files\Exception\NotAuthorizedException;
6+
7+
class SiteAdminOrWorkspaceAdminOrPartnerAdminOrFolderAdminPermissionRequiredException extends NotAuthorizedException
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Files\Exception\NotAuthorized;
4+
5+
use Files\Exception\NotAuthorizedException;
6+
7+
class SiteAdminOrWorkspaceAdminOrPartnerAdminPermissionRequiredException extends NotAuthorizedException
8+
{
9+
}

0 commit comments

Comments
 (0)